Guest User

Untitled

a guest
Apr 21st, 2022
116
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.20 KB | None | 0 0
  1. def nb_year(p0, percent, aug, p):
  2.     pupulation = p0
  3.     counter = 0
  4.     while pupulation <= p:
  5.         pupulation += int(pupulation * (percent / 100) + aug)
  6.         counter += 1
  7.     return counter
Advertisement
Add Comment
Please, Sign In to add comment