#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<<"Smallest no. is = "<<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<<"Smallest no. is = "<<d;
getch();
}
No comments:
Post a Comment