Maximum out of three number in C++ by R4R Team

program:

#include< iostream>
using namespace std;
int main()
{
int a,b,c;
cout<<"Enter Three numbersn";
cin>>a>>b>>c;
if(a>b && a>c)
cout<< a<<" is maximum";
else
if(b>c)
cout<< b<<" is maximum";
else
cout<< c<<" is maximum";
return 0;
}


output-

Enter Three numbers
3 1 8
8 is maximum




Leave a Comment:
Search
Categories
R4R Team
R4Rin Top Tutorials are Core Java,Hibernate ,Spring,Sturts.The content on R4R.in website is done by expert team not only with the help of books but along with the strong professional knowledge in all context like coding,designing, marketing,etc!