/**
 * Imagine you are solving a mathematical problem where you want to find the maximum of three numbers x, y, and z.
 * Using the ternary operator and conditional statements, complete the code to implement a function that returns the maximum of the three numbers.
 *
 * @param x The first number to compare.
 * @param y The second number to compare.
 * @param z The third number to compare.
 * @return The maximum value among x, y, and z.
 */
fun ternaryOperatorExample(x: Int, y: Int, z: Int): Int {

    // Use ternary operator and conditional statements to compare the three numbers
    val result = if (x > y && x > z) x else if (y > z) y else z
    return result
}
/**
 * Imagine you are solving a mathematical problem where you want to find the maximum of three numbers x, y, and z.
 * Using the ternary operator and conditional statements, complete the code to implement a function that returns the maximum of the three numbers.
 *
 * @param x The first number to compare.
 * @param y The second number to compare.
 * @param z The third number to compare.
 * @return The maximum value among x, y, and z.
 */
fun ternaryOperatorExample(x: Int, y: Int, z: Int): Int {
/**
 * Imagine you are solving a mathematical problem where you want to find the maximum of three numbers x, y, and z.
 * Using the ternary operator and conditional statements, complete the code to implement a function that returns the maximum of the three numbers.
 *
 * @param x The first number to compare.
 * @param y The second number to compare.
 * @param z The third number to compare.
 * @return The maximum value among x, y, and z.
 */
fun ternaryOperatorExample(x: Int, y: Int, z: Int): Int {

    // Use ternary operator and conditional statements to compare the three numbers
    val result = if (x > y && x > z) x else if (y > z) y else z
    return result
}