На вході програми маємо три цілих числа a, b і c. Потрібно вивести
менше з них.
knodr75:
на каком языке?
Ответы на вопрос
Ответил knodr75
1
Ответ:
Первый способ более простой
a = int(input())
b = int(input())
c = int(input())
numbers = [a, b, c]
print(min(numbers))
Другой способ с помощью if elif
a = int(input())
b = int(input())
c = int(input())
if a < b and a < c:
print(a)
elif b < a and b < c:
print(b)
elif c < b and c < a:
print(c)
Новые вопросы