#define _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>
#include<stdlib.h>
int main()
{
int a, b, c;
int max, min;
printf("输入三个整数;\n");
scanf("%d %d %d", &a, &b, &c);
if (a < b) {
max = b;
min = a;
}
else {
max = a;
min = b;
}
if (c > max) {
printf("%d %d %d\n", c, max, min);
}
else
if (c > min) {
printf("%d %d %d\n", max,c, min);
}
else {
printf("%d %d %d\n", max, min, c);
}
system("pause");
return 0;
}