• Предмет: Информатика
  • Автор: PipidastrOleg333
  • Вопрос задан 5 месяцев назад

Заданы два целых числа A1, B2, если первое число больше второго, то вывести на экран
текст «Введите свой класс», в противном случае «Введите свою фамилию», если два числа
равны вывести на экран «Введите свой возраст»
Если:
1) A1=7, B2=7;
2) A1=1, B2=0;

Ответы

Ответ дал: askarisabaev5
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")

Объяснение:

Надеюсь ты английский понимаешь

Вас заинтересует