Sichanov

f m

Jun 11th, 2021
159
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.52 KB | None | 0 0
  1. strawberries_price = float(input())
  2. bananas_quantity = float(input())
  3. oranges_quantity = float(input())
  4. raspberries_quantity = float(input())
  5. strawberries_quantity = float(input())
  6. raspberries_price = strawberries_price / 2
  7. oranges_price = raspberries_price * 0.6
  8. bananas_price = raspberries_price * 0.2
  9. total_money = strawberries_quantity * strawberries_price + \
  10.               bananas_quantity * bananas_price + \
  11.               oranges_quantity * oranges_price + raspberries_quantity * raspberries_price
  12. print(total_money)
Advertisement
Add Comment
Please, Sign In to add comment