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