/**
 * This code completion exercise requires you to evaluate the ratio of two divisions using nested ternary operators.
 *
 * Your task is to complete the code by replacing the question marks (?) with the appropriate expressions.
 * The goal is to return the value of (numerator1 / denominator1) if it is larger than (numerator2 / denominator2),
 * otherwise return the value of (numerator2 / denominator2).
 *
 * @param numerator1 the numerator of the first division
 * @param numerator2 the numerator of the second division
 * @param denominator1 the denominator of the first division
 * @param denominator2 the denominator of the second division
 * @return The value of the larger division ratio.
 */
fun evaluate(numerator1: Double, numerator2: Double, denominator1: Double, denominator2: Double): Double {

    val result = if (numerator1 / denominator1 > numerator2 / denominator2) numerator1 / denominator1 else numerator2 / denominator2
    return result
}
/**
 * This code completion exercise requires you to evaluate the ratio of two divisions using nested ternary operators.
 *
 * Your task is to complete the code by replacing the question marks (?) with the appropriate expressions.
 * The goal is to return the value of (numerator1 / denominator1) if it is larger than (numerator2 / denominator2),
 * otherwise return the value of (numerator2 / denominator2).
 *
 * @param numerator1 the numerator of the first division
 * @param numerator2 the numerator of the second division
 * @param denominator1 the denominator of the first division
 * @param denominator2 the denominator of the second division
 * @return The value of the larger division ratio.
 */
fun evaluate(numerator1: Double, numerator2: Double, denominator1: Double, denominator2: Double): Double {
/**
 * This code completion exercise requires you to evaluate the ratio of two divisions using nested ternary operators.
 *
 * Your task is to complete the code by replacing the question marks (?) with the appropriate expressions.
 * The goal is to return the value of (numerator1 / denominator1) if it is larger than (numerator2 / denominator2),
 * otherwise return the value of (numerator2 / denominator2).
 *
 * @param numerator1 the numerator of the first division
 * @param numerator2 the numerator of the second division
 * @param denominator1 the denominator of the first division
 * @param denominator2 the denominator of the second division
 * @return The value of the larger division ratio.
 */
fun evaluate(numerator1: Double, numerator2: Double, denominator1: Double, denominator2: Double): Double {

    val result = if (numerator1 / denominator1 > numerator2 / denominator2) numerator1 / denominator1 else numerator2 / denominator2
    return result
}