/**
 * Write a program that takes two numbers as input and returns the sum of the numbers using the ternary operator.
 *
 * @param num1 An integer representing the first number.
 * @param num2 An integer representing the second number.
 * @return The sum of the two numbers.
 *
 * Note: Use the ternary operator to calculate the sum. If the sum is greater than 10, return the sum multiplied by 2, otherwise return the sum as it is.
 */
fun sumOfNumbers(num1: Int, num2: Int): Int {

    // Ternary operator to calculate sum
    val sum = num1 + num2

    // Use ternary operator to return the result
    return if (sum > 10) sum * 2 else sum
}
/**
 * Write a program that takes two numbers as input and returns the sum of the numbers using the ternary operator.
 *
 * @param num1 An integer representing the first number.
 * @param num2 An integer representing the second number.
 * @return The sum of the two numbers.
 *
 * Note: Use the ternary operator to calculate the sum. If the sum is greater than 10, return the sum multiplied by 2, otherwise return the sum as it is.
 */
fun sumOfNumbers(num1: Int, num2: Int): Int {
/**
 * Write a program that takes two numbers as input and returns the sum of the numbers using the ternary operator.
 *
 * @param num1 An integer representing the first number.
 * @param num2 An integer representing the second number.
 * @return The sum of the two numbers.
 *
 * Note: Use the ternary operator to calculate the sum. If the sum is greater than 10, return the sum multiplied by 2, otherwise return the sum as it is.
 */
fun sumOfNumbers(num1: Int, num2: Int): Int {

    // Ternary operator to calculate sum
    val sum = num1 + num2

    // Use ternary operator to return the result
    return if (sum > 10) sum * 2 else sum
}