#include<stdio.h>
int main() {
printf("请输入三个整数:");
int a, b, c;
scanf_s("%d,%d,%d", &a, &b, &c);
if (a > b)
if (b > c)
printf("%d %d %d", c, b, a);
else
if (a > c)
printf("%d %d %d", b, c, a);
else
printf("%d %d %d", b, a, c);
else
if (a > c)
printf("%d %d %d", c, a, b);
else
if (b > c)
printf("%d %d %d", a, c, b);
else
printf("%d %d %d", a, b, c);
}
每日学习ing
最新推荐文章于 2024-11-13 17:45:44 发布