/**
 * This function calculates the population of a country over a certain period of time.
 *
 * @param countryName the name of the country
 * @param startingPopulation the initial population of the country
 * @param growthRate the annual growth rate of the country in percentage
 * @return the final population of the country after 10 years
 */
fun calculatePopulation(countryName: String, startingPopulation: Int, growthRate: Float): Int {

    // Convert the growth rate into a decimal value
    val growthRateDecimal = growthRate / 100

    // Calculate the population after 10 years using a while loop
    var yearsPassed = 0
    var population = startingPopulation
    while (yearsPassed < 10) {
        population += (population * growthRateDecimal).toInt()
        yearsPassed++
    }

    return population
}
/**
 * This function calculates the population of a country over a certain period of time.
 *
 * @param countryName the name of the country
 * @param startingPopulation the initial population of the country
 * @param growthRate the annual growth rate of the country in percentage
 * @return the final population of the country after 10 years
 */
fun calculatePopulation(countryName: String, startingPopulation: Int, growthRate: Float): Int {
/**
 * This function calculates the population of a country over a certain period of time.
 *
 * @param countryName the name of the country
 * @param startingPopulation the initial population of the country
 * @param growthRate the annual growth rate of the country in percentage
 * @return the final population of the country after 10 years
 */
fun calculatePopulation(countryName: String, startingPopulation: Int, growthRate: Float): Int {

    // Convert the growth rate into a decimal value
    val growthRateDecimal = growthRate / 100

    // Calculate the population after 10 years using a while loop
    var yearsPassed = 0
    var population = startingPopulation
    while (yearsPassed < 10) {
        population += (population * growthRateDecimal).toInt()
        yearsPassed++
    }

    return population
}