Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- spendingmoney_daily = float(input())
- income_daily = float(input())
- expenses = float(input())
- gift_price = float(input())
- left_money = 0
- saved_money = 5*spendingmoney_daily + 5*income_daily
- left_money = saved_money - expenses
- if left_money >= gift_price:
- print(f"Profit: {left_money:.2f} BGN, the gift has been purchased.")
- else:
- diff = abs(gift_price - left_money)
- print(f"Insufficient money: {diff:.2f} BGN.")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement