#include "pch.h"
#include <iostream>a
int main() {
int a, b, c;
scanf_s("%d%d%d", &a, &b, &c);
int temp;
if (a > c) { temp = a, a = c, c = temp; }
if (a > b) { temp = a, a = b, b = temp; }
if (b > c) { temp = b, b = c, c = temp; }
printf("%d %d %d", a, b, c);
}
例1-5 三整数排序
最新推荐文章于 2022-12-05 15:23:38 发布