#include<conio.h>
#include<iostream.h>
#include<math.h>
void main()
{
clrscr();
int a,b,c;
cout<<" ENTER THE THREE NUMBERS ";
cin>>a>>b>>c;
if( a>b && a>c)
{
cout<<"The Greates Number is "<<a;
}
else
if(b>a && b>c)
{
cout<<"The Greates Number is"<<b;
}
else
if(c>a && c>b)
{
cout<<"The Geatest Number is"<<c;
}
getch();
#include<iostream.h>
#include<math.h>
void main()
{
clrscr();
int a,b,c;
cout<<" ENTER THE THREE NUMBERS ";
cin>>a>>b>>c;
if( a>b && a>c)
{
cout<<"The Greates Number is "<<a;
}
else
if(b>a && b>c)
{
cout<<"The Greates Number is"<<b;
}
else
if(c>a && c>b)
{
cout<<"The Geatest Number is"<<c;
}
getch();
No comments:
Post a Comment