Friday, April 18, 2014
Show the value smaller
#include<constream.h>
void main()
{
int a,b,c;
clrscr();
cout<<"Enter First Number :";
cin>>a;
cout<<"Enter Second Number :";
cin>>b;
cout<<"Enter Third Number :";
cin>>c;
if(a<b)
{
if(a<c)
cout<<a<<" is the smallest";
else if(b<c)
cout<<b<<" is the smallest";
else
cout<<"c is the Smallest";
}
getch();
}
Subscribe to:
Post Comments (Atom)







No comments:
Post a Comment