/**
 * This function calculates the number of years it will take for a population to reach the target population
 * assuming a constant growth rate of 3% per year.
 *
 * @param population Current population.
 * @param targetPopulation Desired target population.
 * @return Number of years it will take to reach the target population.
 */
fun analyzePopulationGrowth(population: Int, targetPopulation: Int): Int {

    var year = 0
    var currentPopulation = population

    while (currentPopulation < targetPopulation) {
        currentPopulation = (currentPopulation * 1.03).toInt()
        year++
    }

    return year
}
/**
 * This function calculates the number of years it will take for a population to reach the target population
 * assuming a constant growth rate of 3% per year.
 *
 * @param population Current population.
 * @param targetPopulation Desired target population.
 * @return Number of years it will take to reach the target population.
 */
fun analyzePopulationGrowth(population: Int, targetPopulation: Int): Int {
/**
 * This function calculates the number of years it will take for a population to reach the target population
 * assuming a constant growth rate of 3% per year.
 *
 * @param population Current population.
 * @param targetPopulation Desired target population.
 * @return Number of years it will take to reach the target population.
 */
fun analyzePopulationGrowth(population: Int, targetPopulation: Int): Int {

    var year = 0
    var currentPopulation = population

    while (currentPopulation < targetPopulation) {
        currentPopulation = (currentPopulation * 1.03).toInt()
        year++
    }

    return year
}