Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- orders = int(input())
- total_price = 0
- for i in range(orders):
- capsule_price = float(input())
- days = int(input())
- capsule_count = int(input())
- if 0.01 <= capsule_price <= 100 and 0 < days <= 31 and 0 < capsule_count <= 2000:
- price = capsule_price * days * capsule_count
- print(f'The price for the coffee is: ${price:.2f}')
- total_price += price
- print(f'Total: ${total_price:.2f}')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement