#include<stdio.h>
int main()
{
int a,b,c;
printf("请输入三个整数");
scanf("%d%d%d",&a,&b,&c);
if(a<=b)
{
if(b<=c)
printf("从小到大排列为%d %d %d",a,b,c);
else if(a>=c)
printf("从小到大排列为%d %d %d",c,a,b);
else
printf("从小到大排列为%d %d %d",a,c,b);
}
else
{ if(a<=c)
printf("从小到大排列为%d %d %d",b,a,c);
else if(b>=c)
printf("从小到大排列为%d %d %d",c,b,a);
else
printf("从小到大排列为%d %d %d",b,c,a);
}
return 0;
}
int main()
{
int a,b,c;
printf("请输入三个整数");
scanf("%d%d%d",&a,&b,&c);
if(a<=b)
{
if(b<=c)
printf("从小到大排列为%d %d %d",a,b,c);
else if(a>=c)
printf("从小到大排列为%d %d %d",c,a,b);
else
printf("从小到大排列为%d %d %d",a,c,b);
}
else
{ if(a<=c)
printf("从小到大排列为%d %d %d",b,a,c);
else if(b>=c)
printf("从小到大排列为%d %d %d",c,b,a);
else
printf("从小到大排列为%d %d %d",b,c,a);
}
return 0;
}