/**
 * This function calculates the income based on expenses and revenue,
 * and compares it with the given threshold and returns the result as an integer.
 */
fun compareIncome(expenses: Int, revenue: Int): Int {

    val income = revenue - expenses
    val threshold = -50000
    var result: Int? = null

    when {
        income < threshold -> result = -1 // Insert code here to indicate income is less than threshold
        income == threshold -> result = 0 // Insert code here to indicate income is equal to threshold
        income > threshold -> result = 1 // Insert code here to indicate income is greater than threshold
    }

    return result ?: 0
}
/**
 * This function calculates the income based on expenses and revenue,
 * and compares it with the given threshold and returns the result as an integer.
 */
fun compareIncome(expenses: Int, revenue: Int): Int {
/**
 * This function calculates the income based on expenses and revenue,
 * and compares it with the given threshold and returns the result as an integer.
 */
fun compareIncome(expenses: Int, revenue: Int): Int {

    val income = revenue - expenses
    val threshold = -50000
    var result: Int? = null

    when {
        income < threshold -> result = -1 // Insert code here to indicate income is less than threshold
        income == threshold -> result = 0 // Insert code here to indicate income is equal to threshold
        income > threshold -> result = 1 // Insert code here to indicate income is greater than threshold
    }

    return result ?: 0
}