Предмет: Информатика, автор: vollt

Користувач вводить два числа Якщо сума чисел більше чи дорівнює 50 - комп'ютер виводить подвоєне значення суми. Якщо ж сума менше 50, то комп'ютер виводить половину значення суми цих двох чисел

Ответы

Автор ответа: Аноним
2

Відповідь:

It's written in python:)

num1 = int(input("Enter the first number: "))

num2 = int(input("Enter the second number: "))

total = num1 + num2

if total >= 50:

   print("The double of the sum is", total * 2)

else:

   print("The half of the sum is", total / 2)

Пояснення:

Sorry for the English, I hope I helped you in some way!

If something does not copy, I have attached below how it should look in the input line

Have a great day!

Приложения:

vollt: I'm sorry, I accidentally put a little, I can put a good score, now I'll create a new account (
vollt: wait pls
lxx213: I'm sorry (now I put a normal score
lxx213: good luck) bye!
Похожие вопросы
Предмет: Английский язык, автор: danabelous5
Предмет: Информатика, автор: arukahasankyzy