#include<stdio.h> int main() { int x,y,z,temp; printf("please input one:\n"); scanf("%d",&x); printf("please input two:\n"); scanf("%d",&y); printf("please input three:\n"); scanf("%d",&z); if(x<y){temp=x;x=y;y=temp;} if(x<z){temp=x;x=z;z=temp;} if(y<z){temp=y;y=z;z=temp;} printf("大,中,小=%d,%d,%d\n",x,y,z); }
by: 发表于:2017-06-20 16:12:23 顶(0) | 踩(0) 回复
??
回复评论