Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Първо решение:
- pens = int(input())
- markers = int(input())
- detergent = int(input())
- discount = int(input())
- sum = (pens * 5.80 + markers * 7.20 + detergent * 1.20) * (1 - discount / 100)
- print(sum)
- Второ решение:
- pens = int(input()) * 5.80
- markers = int(input()) * 7.20
- detergent = int(input()) * 1.20
- discount = int(input())
- sum = (pens + markers + detergent) * (1 - discount / 100)
- print(sum)
- Тарикатско решение:)
- print((int(input()) * 5.8 + int(input()) * 7.2 + int(input()) * 1.2) * (1 - int(input()) / 100))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement