/**
 * This exercise requires the completion of a nested ternary operator to perform complex integer operations.
 * The task is to fill in the missing part of the code to find the result based on the given conditions.
 *
 * @param num1 An integer.
 * @param num2 An integer.
 * @param num3 An integer.
 * @return The result of the nested ternary operator computation.
 */
fun nestedTernaryOperatorsExercise(num1: Int, num2: Int, num3: Int): Int {

    return if (num1 > 0) {
        num1 * (num2 + num3)
    } else if (num2 > 0) {
        num1 + (num2 - num3)
    } else if (num3 > 0) {
        num1 * num2 - num3
    } else {
        num1 - (num2 + num3)
    }
}
/**
 * This exercise requires the completion of a nested ternary operator to perform complex integer operations.
 * The task is to fill in the missing part of the code to find the result based on the given conditions.
 *
 * @param num1 An integer.
 * @param num2 An integer.
 * @param num3 An integer.
 * @return The result of the nested ternary operator computation.
 */
fun nestedTernaryOperatorsExercise(num1: Int, num2: Int, num3: Int): Int {
/**
 * This exercise requires the completion of a nested ternary operator to perform complex integer operations.
 * The task is to fill in the missing part of the code to find the result based on the given conditions.
 *
 * @param num1 An integer.
 * @param num2 An integer.
 * @param num3 An integer.
 * @return The result of the nested ternary operator computation.
 */
fun nestedTernaryOperatorsExercise(num1: Int, num2: Int, num3: Int): Int {

    return if (num1 > 0) {
        num1 * (num2 + num3)
    } else if (num2 > 0) {
        num1 + (num2 - num3)
    } else if (num3 > 0) {
        num1 * num2 - num3
    } else {
        num1 - (num2 + num3)
    }
}