#include<stdio.h>
void main()
{
int a,b,c,d,e,t;
printf("please input a,b,c,d,e:");
scanf("%d,%d,%d,%d,%d",&a,&b,&c,&d,&e);
if(a<=b){t=a; a=b; b=t;}
if(a<=c){t=a; a=c; c=t;}
if(a<=d){t=a; a=d; d=t;}
if(a<=e){t=a; a=e; e=t;}
printf("%d\n",a);
if(b<=c){t=b; b=c; c=t;}
if(b<=d){t=b; b=d; d=t;}
if(b<=e){t=b; b=e; e=t;}
printf("%d\n",b);
if(c<=d){t=c; c=d; d=t;}
if(c<=e){t=c; c=e; e=t;}
printf("%d\n",c);
if(d<=e){t=d; d=e; e=t;}
printf("%d\n",d);
printf("%d\n",e);
}
温馨提示:内容为网友见解,仅供参考