/**
 * Fills in the code to compare two values and return the greater of the two.
 * If the two values are equal, it should return the string "Equal".
 * You need to write this code without using the ternary operator (?:).
 *
 * @param val1 The first value (Int or Float) to be compared.
 * @param val2 The second value (Int or Float) to be compared.
 * @return The greater of the two values or the string "Equal" if they are equal.
 */
fun alternativeToTernaryOperator(val1: Number, val2: Number): Any {

    if (val1.toDouble() > val2.toDouble()) {
        return val1
    } else if (val2.toDouble() > val1.toDouble()) {
        return val2
    } else {
        return "Equal"
    }
}
/**
 * Fills in the code to compare two values and return the greater of the two.
 * If the two values are equal, it should return the string "Equal".
 * You need to write this code without using the ternary operator (?:).
 *
 * @param val1 The first value (Int or Float) to be compared.
 * @param val2 The second value (Int or Float) to be compared.
 * @return The greater of the two values or the string "Equal" if they are equal.
 */
fun alternativeToTernaryOperator(val1: Number, val2: Number): Any {
/**
 * Fills in the code to compare two values and return the greater of the two.
 * If the two values are equal, it should return the string "Equal".
 * You need to write this code without using the ternary operator (?:).
 *
 * @param val1 The first value (Int or Float) to be compared.
 * @param val2 The second value (Int or Float) to be compared.
 * @return The greater of the two values or the string "Equal" if they are equal.
 */
fun alternativeToTernaryOperator(val1: Number, val2: Number): Any {

    if (val1.toDouble() > val2.toDouble()) {
        return val1
    } else if (val2.toDouble() > val1.toDouble()) {
        return val2
    } else {
        return "Equal"
    }
}