Advertisement
Petrov4o

Untitled

Feb 27th, 2021
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  1. n = int(input())
  2. total_price = 0
  3. for orders in range(n):
  4. price_per_capsule = float(input())
  5. days = int(input())
  6. capsules_count = int(input())
  7. price_for_coffee = (days * capsules_count) * price_per_capsule
  8. total_price += price_for_coffee
  9. print(f"The price for the coffee is: ${price_for_coffee:.2f}")
  10. print(f"Total: ${total_price:.2f}")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement