输入三个数,输出最大数,最小数
#include<iostream>
#include<iomanip>
#include<cmath>
using namespace std;
int main()
{
int a,b,c;
cin>>a>>b>>c;
int max,min;
max=min=a;
if(b>max)
max=b;
if(c>max)
max=c;
if(b<min)
min=b;
if(c<min)
min=c;
cout<<"The maximum number is : "<<max<<endl;
cout<<"The minimum number is : "<<min<<endl;
return 0;
}