DEV Community

loading...

Discussion on: Daily Challenge #271 - Simulate Population Growth

Collapse
moufeed_m profile image
Mofid Jobakji
const nbYear = (p0,percent,aug,final)=> 
p0 < final ? 1+nbYear(p0 + p0 *(percent/100)+aug ,percent,aug,final) : 0;