Quick actions

cmd+k|ctrl+k

Navigation

Languages

lab3_108

Snippet info

Language

Cpp

Visibility

public

Author

matho.camara

Created

2018-10-23T17:53:53Z

Updated

2018-10-24T09:16:35Z

#include <iostream>
using namespace std;

int main() {
    int a,b,c;
  
	cout << "Input a,b and c values:"<<endl;// to store numbers
    cin>>a>>b>>c;
  
    //checking for bigger numbers
	if((a>b && b>c) || (b>a && a>c))
	cout<<"Sum :"<<a<<"+"<<b<<"="<<a+b<<endl;
	else if((b>c && c>a) || (c>b && b>a))
	cout<<"Sum :"<<b<<"+"<<c<<"="<<b+c<<endl;
	else if((a>c && c>b) || (c>a && a>b))
	cout<<"Sum :"<<a<<"+"<<c<<"="<<a+c<<endl;
	else 
	cout<<"the numbers are identical!!!"<<endl;
    return 0;
}
INFO