#includevoidmain(){inta,b,c,temp;printf("Inputthreenumber:");scanf("%d%d%d",&a,&b,&c);if(b<a){temp=a;a=b;b=temp;}if(cvoid main(){ int a,b,c,temp; printf("Input three number:"); scanf("%d %d %d",&a,&b,&c); if(b<a){ temp=a;a=b;b=temp; } if(c<b) { temp=b;b=c;c=temp; } if(b<a){ temp=a;a=b;b=temp; } printf("%d %d %d\n",a,b,c);}试试看! |