#include<bits/stdc++.h>
using namespace std;
int main()
{
int a, b, c, d;
cin>>a>>b>>c;
if(a>c)
{
d=a;
a=c;
c=d;
}
if(a>b)
{
d=a;
a=b;
b=d;
}
if(b>c)
{
d=b;
b=c;
c=d;
}
cout<<"The maximum number is : "<<c<<endl<<"The minimum number is : "<<a;
return 0;
}
全部评论
(0) 回帖