/**
 * This function simulates the economics of a country based on its revenue, expenses, and population.
 *
 * @param revenue the total revenue generated by the country
 * @param expenses the total expenses incurred by the country
 * @param population the population of the country
 * @return 'Profit' if revenue exceeds expenses and population is above 100 million,
 * 'Loss' if expenses exceed revenue and population is below 100 million,
 * 'Break-even' if revenue equals expenses, or 'Unknown' if any of the conditions are not met.
 */
fun economicsSimulator(revenue: Double, expenses: Double, population: Int): String {

    return when {
        revenue > expenses -> {
            if (population > 100000000) {
                "Profit"
            } else {
                "Unknown"
            }
        }
        expenses > revenue -> {
            if (population < 100000000) {
                "Loss"
            } else {
                "Unknown"
            }
        }
        else -> "Break-even"
    }
}
/**
 * This function simulates the economics of a country based on its revenue, expenses, and population.
 *
 * @param revenue the total revenue generated by the country
 * @param expenses the total expenses incurred by the country
 * @param population the population of the country
 * @return 'Profit' if revenue exceeds expenses and population is above 100 million,
 * 'Loss' if expenses exceed revenue and population is below 100 million,
 * 'Break-even' if revenue equals expenses, or 'Unknown' if any of the conditions are not met.
 */
fun economicsSimulator(revenue: Double, expenses: Double, population: Int): String {
/**
 * This function simulates the economics of a country based on its revenue, expenses, and population.
 *
 * @param revenue the total revenue generated by the country
 * @param expenses the total expenses incurred by the country
 * @param population the population of the country
 * @return 'Profit' if revenue exceeds expenses and population is above 100 million,
 * 'Loss' if expenses exceed revenue and population is below 100 million,
 * 'Break-even' if revenue equals expenses, or 'Unknown' if any of the conditions are not met.
 */
fun economicsSimulator(revenue: Double, expenses: Double, population: Int): String {

    return when {
        revenue > expenses -> {
            if (population > 100000000) {
                "Profit"
            } else {
                "Unknown"
            }
        }
        expenses > revenue -> {
            if (population < 100000000) {
                "Loss"
            } else {
                "Unknown"
            }
        }
        else -> "Break-even"
    }
}