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