#include<stdio.h> int main() { int x,y,z,t; scanf("%d %d %d",&x,&y,&z); if(x<y) { t=x;x=y;y=t; } if(x<z) { t=x;x=z;z=t; } if(y<z) { t=y;y=z;z=t; } printf("%d %d %d\n",x,y,z); return 0; }
标签:输出,顺序,大到,int,整数,键盘输入 From: https://www.cnblogs.com/lachesism/p/16732867.html