Advertisement
George_Ivanov05

.

Mar 10th, 2021
122
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.28 KB | None | 0 0
  1. from decimal import Decimal
  2.  
  3. price_veg = float(input())
  4. price_fruit = float(input())
  5.  
  6. kg_veg = int(input())
  7. kg_fruits = int(input())
  8.  
  9. price_lv = price_fruit * kg_fruits + price_veg * kg_veg
  10.  
  11. price_eu = Decimal(price_lv / 1.94)
  12. price_eu = round(price_eu, 2)
  13.  
  14. print(price_eu)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement