desislava_topuzakova

Untitled

Mar 7th, 2021
177
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.76 KB | None | 0 0
  1. price_strawberries = float(input())
  2. quantity_bananas = float(input())
  3. quantity_oranges = float(input())
  4. quantity_raspberries = float(input())
  5. quantity_strawberries = float(input())
  6.  
  7. # cena za qgodite
  8. total_strawberries = quantity_strawberries * price_strawberries
  9.  
  10. #cena za malinite
  11. price_raspberries = price_strawberries / 2
  12. total_raspberries = quantity_raspberries * (price_strawberries / 2)
  13.  
  14. #cena za banani
  15. price_bananas = price_raspberries - 0.8 * price_raspberries
  16. total_bananas = quantity_bananas * price_bananas
  17.  
  18. #cena za portokali
  19. price_oranges = quantity_raspberries - 0.4 * price_raspberries
  20. total_oranges = quantity_oranges * price_oranges
  21.  
  22. expenses = total_strawberries + total_raspberries + total_bananas + total_oranges
  23. print(expenses)
Advertisement
Add Comment
Please, Sign In to add comment