标签:io amp print c ca include 排序 printf
#include <stdio.h>
void main()
{
int a,b,c,t;
printf("请输入三个整数:\n");
scanf("%d,%d,%d",&a,&b,&c);
if(a<b)
{
t=a;
a=b;
b=t;
}
if(a<c)
{
t=a;
a=c;
c=t;
}
if(b<c)
{
t=b;
b=c;
c=t;
}
printf("从大到小的排序为:%d,%d,%d",a,b,c);
printf("\n") ;
}
任意输入三个整数,按从大到小的顺序输出,布布扣,bubuko.com
标签:io amp print c ca include 排序 printf
原文地址:http://www.cnblogs.com/wenhuan/p/3913330.html