BlueBook - World Pop

View as PDF

Submit solution

Points: 3
Time limit: 1.0s
Memory limit: 16M

Problem types
BlueBook

The world's population is increasing at a rate of approximately p\% each year. The population in year y was n.

Write a program to estimate the population in the future assuming that the present growth rate continues until that time.

Input Specification

The first line will be the rate of increase p, the second line will be the starting year of the population y, the third line will be the population n for the starting year, and the last line will be the year at which we would like to estimate the population.

Output Specification

The output will simply be the population that we estimated in the final year.

Sample Input

1.6
1987
5000000000
2087

Sample Output

24453487116

Comments


  • 7
    Fares_X  commented on Jan. 3, 2023, 1:44 p.m.

    Don't forget to round up.