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