#include<iostream>
using namespace std;
int main()
{
int x,y,z,max;
cout<<"Enter The Three Numbers \n";
cin>>x>>y>>z;
max=x;
if (y>max)
{
max=y;
}
if(z>max)
{
max=z;
}
cout<<"\nThe Greatest Number In Given Numbers "<<x<<" "<<y<<" "<<z<<" is "<<max;
}
Output:
Enter The Three Numbers
100
200
300
The Greatest Number In Given Numbers 100 200 300 is 300
Output:
Enter The Three Numbers
100
200
300
The Greatest Number In Given Numbers 100 200 300 is 300
need an explanation for this answer? contact us directly to get an explanation for this answer