Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- budget=float(input())
- ski=float(input())
- shteki=float(input())
- shoes=ski*0.4
- cloths=ski*1.4
- money=0
- whole=shoes+cloths+ski
- if(whole>=800):
- whole+=0
- else:
- whole=whole+shteki
- if(whole<=budget):
- print(f"Angel's sum is {whole:.2f} lv. He has {budget-whole:.2f} lv. left.")
- else:
- print(f'Not enough money! You need {whole-budget:.2f} leva more!')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement