#include <iostream.h>
#include<conio.h>
void main()
{
int a , b , c , min , max ;
cout<<"Enter three numbers : " ;
cin>>a>>b>>c ;
if (a < b)
min = a ;
else
min = b ;
if (c < min)
min = c ;
cout<<"The minimum number is "<<min ;
getch () ;
if (a > b)
max = a ;
else
max = b ;
if (c > max)
max = c ;
cout<<"The maximum number is "<<max ;
getch () ;
}
0 comments:
Post a Comment