project-python3/lesson2.3_5.py
2025-12-15 14:14:30 +05:00

9 lines
195 B
Python

'''****** Задание ********
*Внимание! Акция!
'''
result = 0
while (price := float(input())) != 0:
if price >= 500:
price *= 0.9
result += price
print(result)