Advertisement
Spocoman

Fruit Market

Aug 14th, 2022
45
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.44 KB | None | 0 0
  1. strawberries_price = float(input())
  2. bananas_kg = float(input())
  3. oranges_kg = float(input())
  4. raspberries_kg = float(input())
  5. strawberries_kg = float(input())
  6. raspberries_price = strawberries_price / 2
  7. oranges_price = raspberries_price * 0.6
  8. bananas_price = raspberries_price / 5
  9.  
  10. total = strawberries_price * strawberries_kg + bananas_price * bananas_kg + oranges_price * oranges_kg + raspberries_price * raspberries_kg
  11. print(f'{total:.2f}')
  12.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement