Advertisement
Guest User

Bracelet Stand

a guest
Jul 19th, 2021
673
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. spendingmoney_daily = float(input())
  2. income_daily = float(input())
  3. expenses = float(input())
  4. gift_price = float(input())
  5. left_money = 0
  6. saved_money = 5*spendingmoney_daily + 5*income_daily
  7. left_money = saved_money - expenses
  8. if left_money >= gift_price:
  9. print(f"Profit: {left_money:.2f} BGN, the gift has been purchased.")
  10. else:
  11. diff = abs(gift_price - left_money)
  12. print(f"Insufficient money: {diff:.2f} BGN.")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement