comparing three values

To compare the values of a,b and c?


#include<iostream>
#include<conio.h>
using namespace std;
main()
{ int a,b,c,max;
cin>>a>>b>>c;
max=a;
if(max<b)
max=b;
if(max<c)
max=c;
cout<<max;
getch();
}
What is your problem?
Please give us more details.
Topic archived. No new replies allowed.