Searching...

Greater Number.

15:47

#include <iostream>
using namespace std;
int main()
{
int n1,n2,n3;
cout << "Enter 1st Number, 2nd Number and 3rd Number:\n";
cin >> n1 >> n2 >> n3;
if (n1 > n2 && n1 > n3)
cout << n1 << " is Greater." <<endl;
else if(n2 > n3 && n2 > n3)
cout << n2 << " is Greater." <<endl;
else if(n3 > n1 && n3 > n1)
cout << n3 <<" is Greater."<<endl;
else
cout << "Numbers are same."<<endl;
return 0;
}

0 comments:

Post a Comment

Thanks For Your FeedBack....

:) :)) ;(( :-) =)) ;( ;-( :d :-d @-) :p :o :>) (o) [-( :-? (p) :-s (m) 8-) :-t :-b b-( :-# =p~ $-) (b) (f) x-) (k) (h) (c) cheer
Click to see the code!
To insert emoticon you must added at least one space before the code.