语言入门41

#include<stdio.h>
main()
{
int a,b,c,t;
scanf("%d %d %d",&a,&b,&c);
if(a>b) {t=a;a=b;b=t;};
if(b>c) {t=b;b=c;c=t;};
if(a>c) {t=a;a=c;c=t;};
if(a>b) {t=a;a=b;b=t;};
printf("%d %d %d",a,b,c);
}

posted @ 2016-05-16 14:13  程程嗨呀  阅读(76)  评论(0编辑  收藏  举报