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