#include<stdio.h>

int main() {
int a = 0;
int b = 0;
int c = 0;//初始化
int temp = 0;//中间变量
printf("请输入想要排序的三个数值:");
scanf_s("%d%d%d", &a,&b,&c);//输入想要比较的三个数

if (a < b) {//依次比较把最大的移转到a,次之到b,再到c
temp = a;
a = b;
b = temp;
}
if (a < c) {
temp = a;
a = c;
c = temp;
}
if (b < c) {
temp = b;
b = c;
c = temp;
}
printf("%d>%d>%d", a, b, c);//从小到大输出
return 0;