Saturday, February 13, 2010

largest number from the given number program

#include
#include
void main()
{
int a,b,c,large;
cout<<"enter three numbers:";
cin>>a>>b>>c;
large=a>b?(a>c?a:c):(b>c?b:c);
cout<<"the largest of three number is"<<<"/n";
getch();
}

No comments:

Post a Comment