/**
 * This exercise is designed to test your ability as a journalist to create a list and perform additions.
 *
 * You are required to create a function named "createAdditionList" that takes in three arguments: num1, num2, and num3.
 * The function should create a list that contains the addition of each number with all the other numbers in the list.
 * The resulting list should only include unique values and should be sorted in ascending order.
 *
 * Your task is to complete the function code below to solve this exercise.
 */
fun createAdditionList(num1: Int, num2: Int, num3: Int): List<Int> {

    // Create an empty list to store the results
    val resultList = mutableListOf<Int>()

    // Perform the addition and add unique values to the resultList
    resultList.add(num1 + num2)
    resultList.add(num1 + num3)
    resultList.add(num2 + num3)

    // Remove duplicates and sort the resultList in ascending order
    val uniqueResultList = resultList.toSet().sorted()

    // Return the resulting list
    return uniqueResultList
}
/**
 * This exercise is designed to test your ability as a journalist to create a list and perform additions.
 *
 * You are required to create a function named "createAdditionList" that takes in three arguments: num1, num2, and num3.
 * The function should create a list that contains the addition of each number with all the other numbers in the list.
 * The resulting list should only include unique values and should be sorted in ascending order.
 *
 * Your task is to complete the function code below to solve this exercise.
 */
fun createAdditionList(num1: Int, num2: Int, num3: Int): List<Int> {
/**
 * This exercise is designed to test your ability as a journalist to create a list and perform additions.
 *
 * You are required to create a function named "createAdditionList" that takes in three arguments: num1, num2, and num3.
 * The function should create a list that contains the addition of each number with all the other numbers in the list.
 * The resulting list should only include unique values and should be sorted in ascending order.
 *
 * Your task is to complete the function code below to solve this exercise.
 */
fun createAdditionList(num1: Int, num2: Int, num3: Int): List<Int> {

    // Create an empty list to store the results
    val resultList = mutableListOf<Int>()

    // Perform the addition and add unique values to the resultList
    resultList.add(num1 + num2)
    resultList.add(num1 + num3)
    resultList.add(num2 + num3)

    // Remove duplicates and sort the resultList in ascending order
    val uniqueResultList = resultList.toSet().sorted()

    // Return the resulting list
    return uniqueResultList
}