#include<stdio.h>
int main()
{
int a=0, b=0, c=0,cup=0;
printf("请输入三个整数(每个数用空格隔开):\n");
scanf_s("%d %d %d", &a, &b, &c);
if (a > b)
{
cup = a;
a = b;
b = cup;
}
else if (a > c)
{
cup = a;
a = c;
c = cup;
}
else if (b > c)
{
cup = b;
b = c;
c = b;
}
printf("%d %d %d", c, b, a);
return 0;
}