boris-vlasenko

вклад

Oct 2nd, 2015
145
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.12 KB | None | 0 0
  1. n = int(input())
  2. k = int(input())
  3. m = int(input())
  4. year = 0
  5. while n < m:
  6.     year += 1
  7.     n += round(n*k/100)
  8. print(year)
Advertisement
Add Comment
Please, Sign In to add comment