#include<iostream.h>
#include<conio.h>
void main()
{
clrscr();
int a,b,c,d;
cout<<"Enter 3 nos. ";
cin>>a>>b>>c;
d=a>b?(a>c?a:c):(b>c?b:c);
cout<<"Largest no. = "<<d;
getch();
}
#include<conio.h>
void main()
{
clrscr();
int a,b,c,d;
cout<<"Enter 3 nos. ";
cin>>a>>b>>c;
d=a>b?(a>c?a:c):(b>c?b:c);
cout<<"Largest no. = "<<d;
getch();
}
No comments:
Post a Comment