Користувач вводить два числа Якщо сума чисел більше чи дорівнює 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?(
I'm sorry, I accidentally put a little, I can put a good score, now I'll create a new account (
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!)
I'm sorry (now I put a normal score
good luck) bye!
Thanks for the effort:)Bye!
Вас заинтересует
1 год назад
1 год назад
1 год назад
3 года назад
3 года назад
8 лет назад