Advertisement
Spocoman

Savings

Oct 7th, 2023
836
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.22 KB | None | 0 0
  1. salary = float(input())
  2. months = int(input())
  3. minimal_costs = float(input())
  4.  
  5. monthly_savings = salary * 0.70 - minimal_costs
  6.  
  7. print(f"She can save {monthly_savings / salary * 100:.2f}%\n{monthly_savings * months:.2f}")
  8.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement