#include<iostream>
using namespace std;
int main()
{
int a,b,c;
cout<<"Enter the All three numbers u want to compare: "<<endl;
cin>>a>>b>>c;
cout<<"the value of A is "<<a<<" B is "<<b<<" C is "<<c<<endl;
if((a>b)&&(a>c))
{
cout<<"The Greatest number is A: "<<a<<endl;
}
else if((b>a)&&(b>c))
{
cout<<"The Greatest number is B: "<<b<<endl;
}
else
{
cout<<"The Greatest number is C: "<<c<<endl;
}
return 0;
}
To embed this program on your website, copy the following code and paste it into your website's HTML: