Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- monthly_income = float(input())
- months_for_save = int(input())
- personal_needs_money = float(input())
- unexpected_needs = monthly_income * 0.3
- saved_money = monthly_income - personal_needs_money - unexpected_needs
- total_saved = months_for_save * saved_money
- percent_total_saved = saved_money / monthly_income * 100
- print(f"She can save {percent_total_saved:.2f}%\n{total_saved:.2f}")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement