Advertisement
simeonshopov

Savings

Oct 11th, 2019
127
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.26 KB | None | 0 0
  1. dohod = float(input())
  2. months_have = int(input())
  3. expences = float(input())
  4.  
  5. save_per = ((dohod - expences - dohod * 0.3) / dohod) * 100
  6. sum_saved = (dohod - expences - dohod * 0.3) * months_have
  7.  
  8. print(f"She can save {save_per:.2f}%")
  9. print(f"{sum_saved:.2f}")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement