/**
 * Use ternary operator to check if a is equal to b and assign c to a if so,
 * otherwise assign b to a and return a.
 *
 * @param a The first integer.
 * @param b The second integer.
 * @param c The third integer.
 * @return The updated value of a.
 *
 * Example:
 * ternaryOperatorEqual(5, 5, 10) // Output: 10
 * ternaryOperatorEqual(5, 10, 10) // Output: 5
 */
fun ternaryOperatorEqual(a: Int, b: Int, c: Int): Int {

    return if (a == b) c else b
}
/**
 * Use ternary operator to check if a is equal to b and assign c to a if so,
 * otherwise assign b to a and return a.
 *
 * @param a The first integer.
 * @param b The second integer.
 * @param c The third integer.
 * @return The updated value of a.
 *
 * Example:
 * ternaryOperatorEqual(5, 5, 10) // Output: 10
 * ternaryOperatorEqual(5, 10, 10) // Output: 5
 */
fun ternaryOperatorEqual(a: Int, b: Int, c: Int): Int {
/**
 * Use ternary operator to check if a is equal to b and assign c to a if so,
 * otherwise assign b to a and return a.
 *
 * @param a The first integer.
 * @param b The second integer.
 * @param c The third integer.
 * @return The updated value of a.
 *
 * Example:
 * ternaryOperatorEqual(5, 5, 10) // Output: 10
 * ternaryOperatorEqual(5, 10, 10) // Output: 5
 */
fun ternaryOperatorEqual(a: Int, b: Int, c: Int): Int {

    return if (a == b) c else b
}