[CodeWars] javascript - 7kyu - Growth Of Population 문제풀이


[CodeWars] javascript - 7kyu - Growth Of Population 문제풀이

Title Growth Of Population Description In a small town the population is p0 = 1000 at the beginning of a year. The population regularly increases by 2 percent per year and moreover 50 new inhabitants per year come to live in the town. How many years does the town need to see its population greater or equal to p = 1200 inhabitants? At the end of the first year there will be: 1000 + 1000 * 0.02 + ..


원문링크 : [CodeWars] javascript - 7kyu - Growth Of Population 문제풀이