Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import math
- magnolii=int(input())
- zumbul=int(input())
- rozi=int(input())
- cactus=int(input())
- present=float(input())
- sum=(magnolii*3.25+zumbul*4+rozi*3.50+cactus*8)*0.95
- if sum>=present:
- print(f"She is left with {int(sum-present)} leva.")
- else:
- print(f"She will have to borrow {math.ceil(present-sum)} leva.")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement