/**
 * Given three integer numbers x, y, and z, perform the following operations:
 * - If x is greater than y, add z to y using the addition assignment operator and return the result.
 * - If x is less than y, add z to x using the addition assignment operator and return the result.
 * - If x is equal to y, return the product of x and y.
 *
 * @param x An integer number.
 * @param y An integer number.
 * @param z An integer number.
 * @return The result of the specified operation.
 *
 * Examples:
 * additionAssignmentOperatorIfElse(5, 3, 2) // 5
 * additionAssignmentOperatorIfElse(5, 7, 2) // 9
 * additionAssignmentOperatorIfElse(5, 5, 2) // 25
 */
fun additionAssignmentOperatorIfElse(x: Int, y: Int, z: Int): Int {

    return when {
        x > y -> y + z
        x < y -> x + z
        else -> x * y
    }
}
/**
 * Given three integer numbers x, y, and z, perform the following operations:
 * - If x is greater than y, add z to y using the addition assignment operator and return the result.
 * - If x is less than y, add z to x using the addition assignment operator and return the result.
 * - If x is equal to y, return the product of x and y.
 *
 * @param x An integer number.
 * @param y An integer number.
 * @param z An integer number.
 * @return The result of the specified operation.
 *
 * Examples:
 * additionAssignmentOperatorIfElse(5, 3, 2) // 5
 * additionAssignmentOperatorIfElse(5, 7, 2) // 9
 * additionAssignmentOperatorIfElse(5, 5, 2) // 25
 */
fun additionAssignmentOperatorIfElse(x: Int, y: Int, z: Int): Int {
/**
 * Given three integer numbers x, y, and z, perform the following operations:
 * - If x is greater than y, add z to y using the addition assignment operator and return the result.
 * - If x is less than y, add z to x using the addition assignment operator and return the result.
 * - If x is equal to y, return the product of x and y.
 *
 * @param x An integer number.
 * @param y An integer number.
 * @param z An integer number.
 * @return The result of the specified operation.
 *
 * Examples:
 * additionAssignmentOperatorIfElse(5, 3, 2) // 5
 * additionAssignmentOperatorIfElse(5, 7, 2) // 9
 * additionAssignmentOperatorIfElse(5, 5, 2) // 25
 */
fun additionAssignmentOperatorIfElse(x: Int, y: Int, z: Int): Int {

    return when {
        x > y -> y + z
        x < y -> x + z
        else -> x * y
    }
}