第1个回答 2020-03-02
#include<stdio.h>
void
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);
}
试试看!