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
7
populationIn2012 = 1000populationIn2013 = populationIn2012 * 1.1populationIn2014 = populationIn2013 * 1.1 populationIn2015 = populationIn2014 * 1.1
Answered by
0
Answer:
populationIn2012 = 1000
populationIn2013 = populationIn2012 * 1.1
populationIn2014 = populationIn2013 * 1.1
populationIn2015 = populationIn2014 * 1.1
Explanation:
Similar questions