Користувач вводить два числа Якщо сума чисел більше чи дорівнює 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!

Приложения:

Аноним: You gave 2 stars for English?(
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
Аноним: No need in any way, I'm glad you liked the answer, I would just correct myself if you didn't like the answer, have a nice day!)
lxx213: I'm sorry (now I put a normal score
lxx213: good luck) bye!
Аноним: Thanks for the effort:)Bye!
Вас заинтересует