Дано 10 целых чисел. Вычислите их сумму. Напишите программу, использующую наименьшее число переменн
Python
# Считываем 10 целых чисел и вычисляем их сумму
total_sum = sum(int(input("Введите число: ")) for _ in range(10))
# Выводим результат
print("Сумма 10 чисел:", total_sum)
Output
Embed on website
To embed this program on your website, copy the following code and paste it into your website's HTML:
Comments
This comment belongs to a banned user and is only visible to admins.
This comment belongs to a deleted user and is only visible to admins.