#include <iostream>
using namespace std;
inline int largest(int a,int b,int c)
{
if(a>>b&&a>>c)
return a;
else if(b>c)
return b;
else
return c;
}
int main()
{
int m,n,o,l;
cout<<"LARGEST AMONG THREE NUMBERS"<<endl;
cout<<"___________________________"<<endl;
cout<<"Enter a three numbers:"<<endl;
cin>>m>>n>>o;
l=largest(m,n,o);
cout<<"The Largest Number of["<<m<<","<<n<<","<<o<<"]= "<<l<<""<<endl;
return 0;
}
To embed this project on your website, copy the following code and paste it into your website's HTML: