#include<stdio.h>
int main()
{
int a = 0;
int b = 0;
int c = 0;
scanf_s("%d%d%d", &a, &b, &c);
if (a < b)
{
int num = 0;
num = a;
a = b;
b = num;
}
if (a < c)
{
int sum = 0;
sum = a;
a = c;
c = sum;
}
if (c > b)
{
int mat = 0;
c = mat;
c = b;
b = mat;
}
printf("%d %d %d\n", a, b, c);
以上是这道题的代码,有更加简便的可以评论讨论一下,给我更多的建议,谢谢大家
标签:排列,mat,int,sum,d%,num,从大到,输入 From: https://blog.51cto.com/u_16351083/8316586