Social Sciences, asked by Hafizaa5991, 1 year ago

Fix the logic error in this program: it should calculate the population of your country for the next 3 years, assuming it starts with 1000 people in 2012, and the number of people increases by 10% each year. you can change at most three characters.

Answers

Answered by mrjamesreinholp0iflc
7
populationIn2012 = 1000populationIn2013 = populationIn2012 * 1.1populationIn2014 = populationIn2013 * 1.1 populationIn2015 = populationIn2014 * 1.1
Answered by myinnos
0

Answer:

populationIn2012 = 1000

populationIn2013 = populationIn2012 * 1.1

populationIn2014 = populationIn2013 * 1.1

populationIn2015 = populationIn2014 * 1.1

Explanation:

Similar questions