/**
 * Fill in the missing parts of the code to properly utilize the syntax of the ternary operator and the 
 * addition assignment operator.
 *
 * @param a An integer representing the initial value.
 * @param b An integer representing the second value.
 * @param c An integer representing the third value.
 * @return The result of the ternary addition assignment operation.
 *
 * Instructions:
 * 1. Use the ternary operator to check if the value of 'a' is divisible by both 'b' and 'c'.
 * 2. If it is divisible by both, then add 'b' and 'c' to 'a'.
 * 3. If it is not divisible by both, then subtract 'b' from 'a'.
 * 4. Finally, return the resulting value of 'a'.
 */
fun ternaryAdditionAssignment(a: Int, b: Int, c: Int): Int {

    // Use the syntax of the ternary operator and the addition assignment operator to complete the code
    val result = a + if (a % b == 0 && a % c == 0) b + c else -b
    return result
}
/**
 * Fill in the missing parts of the code to properly utilize the syntax of the ternary operator and the 
 * addition assignment operator.
 *
 * @param a An integer representing the initial value.
 * @param b An integer representing the second value.
 * @param c An integer representing the third value.
 * @return The result of the ternary addition assignment operation.
 *
 * Instructions:
 * 1. Use the ternary operator to check if the value of 'a' is divisible by both 'b' and 'c'.
 * 2. If it is divisible by both, then add 'b' and 'c' to 'a'.
 * 3. If it is not divisible by both, then subtract 'b' from 'a'.
 * 4. Finally, return the resulting value of 'a'.
 */
fun ternaryAdditionAssignment(a: Int, b: Int, c: Int): Int {
/**
 * Fill in the missing parts of the code to properly utilize the syntax of the ternary operator and the 
 * addition assignment operator.
 *
 * @param a An integer representing the initial value.
 * @param b An integer representing the second value.
 * @param c An integer representing the third value.
 * @return The result of the ternary addition assignment operation.
 *
 * Instructions:
 * 1. Use the ternary operator to check if the value of 'a' is divisible by both 'b' and 'c'.
 * 2. If it is divisible by both, then add 'b' and 'c' to 'a'.
 * 3. If it is not divisible by both, then subtract 'b' from 'a'.
 * 4. Finally, return the resulting value of 'a'.
 */
fun ternaryAdditionAssignment(a: Int, b: Int, c: Int): Int {

    // Use the syntax of the ternary operator and the addition assignment operator to complete the code
    val result = a + if (a % b == 0 && a % c == 0) b + c else -b
    return result
}