Advertisement
aneliabogeva

Vegetable Market

Apr 15th, 2019
146
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. priceVegetables = float(input())
  2. priceFruits = float(input())
  3. quantityVegetables = float(input())
  4. quantityFruits = float(input())
  5.  
  6. sumVegetables = priceVegetables*quantityVegetables
  7. sumFruits = priceFruits*quantityFruits
  8.  
  9. totalSum = sumFruits+sumVegetables
  10.  
  11. sumInEuro = (totalSum / 1.94)
  12. print(f"{sumInEuro:.15n}")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement