Download as pdf or txt
Download as pdf or txt
You are on page 1of 1

#include <iostream>

using namespace std;

int main()
{
int a,b,c;
cin>>a;
cin>>b;
cin>>c;
if ((a>b)&&(a>c)){
cout<<"a is greatest";
}
else
if ((b>a)&&(b>c)){
cout<<"b is greatest";
}
else
if ((c>a)&&(c>b)){
cout<<"c is greatest";
}

return 0;
}

You might also like