#include <iostream>
using namespace std;
int main ( )
{
int a,s,d;
cout <<" Enter the three different numbers \n";
cin >> a >> s >> d ;
if ( a>s )
{
if ( a>d )
{
cout <<" The largest number is a " ;
}
else
{
cout <<" Largest number is d " ;
}
}
else
{
if ( s>d )
{
cout <<" Largest number is s " ;
}
else
{
cout <<" Largest number is d " ;
}
}
return 0;
}
No comments:
Post a Comment
Must drop your comments about post.