Предмет: Информатика,
автор: PipidastrOleg333
Заданы два целых числа 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")
Объяснение:
Надеюсь ты английский понимаешь
Похожие вопросы
Предмет: Українська мова,
автор: suskovahristina10
Предмет: Физика,
автор: prohorcovivan
Предмет: Химия,
автор: oksknacervinskaa
Предмет: Английский язык,
автор: alisa1368
Предмет: Геометрия,
автор: godlevskajaanastasij