Advertisement
Spocoman

05. Supplies for School

Dec 1st, 2021
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.57 KB | None | 0 0
  1. Първо решение:
  2.  
  3.  
  4. pens = int(input())
  5. markers = int(input())
  6. detergent = int(input())
  7. discount = int(input())
  8.  
  9. sum = (pens * 5.80 + markers * 7.20 + detergent * 1.20) * (1 - discount / 100)
  10. print(sum)
  11.  
  12.  
  13. Второ решение:
  14.  
  15. pens = int(input()) * 5.80
  16. markers = int(input()) * 7.20
  17. detergent = int(input()) * 1.20
  18. discount = int(input())
  19.  
  20. sum = (pens + markers + detergent) * (1 - discount / 100)
  21. print(sum)
  22.  
  23. Тарикатско решение:)
  24.  
  25. print((int(input()) * 5.8 + int(input()) * 7.2 + int(input()) * 1.2) * (1 - int(input()) / 100))
  26.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement