Заданы два целых числа A1, B2, если первое число больше второго, то вывести на экран
текст «Введите свой класс», в противном случае «Введите свою фамилию», если два числа
равны вывести на экран «Введите свой возраст»
Если:
1) A1=7, B2=7;
2) A1=1, B2=0;
Ответы
Ответ дал:
0
Ответ:
# Store the two numbers in variables
A1=int(input())
B2=int(input())
# Check if the first number is greater than the second
if A1 > B2:
# If the first number is greater than the second, print "Enter your class"
print("Enter your class")
else:
# If the first number is not greater than the second, check if the numbers are equal
if A1 == B2:
# If the numbers are equal, print "Enter your age"
print("Enter your age")
else:
# If the first number is not greater than the second and the numbers are not equal, print "Enter your last name"
print("Enter your name")
Объяснение:
Надеюсь ты английский понимаешь
Вас заинтересует
4 месяца назад
4 месяца назад
5 месяцев назад
5 месяцев назад
2 года назад
2 года назад
7 лет назад