#include <stdio.h>
int main()//三个数比大小,从大到小
{
int a = 0;
int b = 0;
int c = 0;
scanf("%d %d %d", &a, &b, &c);//输入数字时,两两要有空格为间隙
if (a < b)
{
int tem = a;
a = b;
b = tem;
}
if (a< c)
{
int tem = a;
a = c;
c = tem;
}
if (b < c)
{
int tem = b;
b = c;
c = tem;
}
printf("%d %d %d", a, b, c);
return 0;
}
标签:return,tem,数比,int,作业,从大到,main
From: https://blog.51cto.com/u_16170479/6996727