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