#include <iostream>
using namespace std;
int main() {
int a, b, c,large;
cout <<"Enter the three numbers ";
cin>>a>>b>>c;
large =a>b?(a>c?a:c):(b>c?b:c);
cout <<"\n"<<large <<" is largest number ";
return 0;
}
To embed this program on your website, copy the following code and paste it into your website's HTML: