#include<stdio.h>
int main()
{
int t=0;
int a, b, c;
printf("输入三个数值\n:");
scanf("%d,%d,%d",&a,&b,&c);//
if (a<b)//假设27,37,43 27<37 ,c先不管
{
t = a;//将27从a取出暂存在t(t被初始化)→t=27,a空出来了
a = b;//将b此时的值附在a,即此时a的位置是37
b = t;//将t(被a赋值后的t)27,放在b位置上
}
if (a<c)//同理同上
{
t = a;
a = c;
c = t;
}
if (b<c)
{
t = b;
b = c;
c = t;
}
printf("从大到小输出:\n");
printf("%d %d %d\n",a,b,c);
return 0;
}