a, b, c = int(input()), int(input()), int(input())
if a >= b and a >= c and b >= c:
print(c, b, a)
elif a <= b and a >= c and b >= c:
print(c, a, b)
elif a <= b and a <= c and b <= c:
print(a, b, c)
elif a >= b and a >= c and b <= c:
print(b, c, a)
elif a >= b and a <= c and b <= c:
print(b, a, c)
else:
print(a, c, b)
Объяснение:
Это Python
PascalABC.NET
begin
var (a, b, c) := ReadInteger3('Введи три числа:');
if a < b then
Swap(a, b);
if c > b then
Swap(b, c);
if b > a then
Swap(a, b)
end;
Print(a, b, c)
end.
a, b, c = int(input()), int(input()), int(input())
if a >= b and a >= c and b >= c:
print(c, b, a)
elif a <= b and a >= c and b >= c:
print(c, a, b)
elif a <= b and a <= c and b <= c:
print(a, b, c)
elif a >= b and a >= c and b <= c:
print(b, c, a)
elif a >= b and a <= c and b <= c:
print(b, a, c)
else:
print(a, c, b)
Объяснение:
Это Python
PascalABC.NET
begin
var (a, b, c) := ReadInteger3('Введи три числа:');
if a < b then
Swap(a, b);
if c > b then
begin
Swap(b, c);
if b > a then
Swap(a, b)
end;
Print(a, b, c)
end.