```c #include <stdio.h> // 输入函数 void input(int *a, int *b, int *c) { scanf("%d%d%d", a, b, c); } // 排序函数 void sort(int *a, int *b, int *c) { int temp; if (*a < *b) { temp = *a; *a = *b; *b = temp; } if (*a < *c) { temp = *a; *a = *c; *c = temp; } if (*b < *c) { temp = *b; *b = *c; *c = temp; } } int main() { int a, b, c; input(&a, &b, &c); sort(&a, &b, &c); printf("%3d%3d%3d\n", a, b, c); return 0; } ``` [2024-10-22 22:06:20 | AI写代码神器 | 246点数解答]