/**
 * As a psychologist, I want you to complete the code so that the infinite while loop terminates when the condition provided is true.
 * You will need to use the unconditioned ternary operator in Python.
 *
 * The function takes two parameters, p1 and p2. Your task is to modify the code inside the while loop using an unconditioned ternary operator
 * in order to make the loop terminate when the condition (p1 == p2) is true.
 *
 * Note: An unconditioned ternary operator in Python is denoted by 'statement_if_true if condition else statement_if_false'.
 *
 * Example:
 * unconditionedTernaryOperator(5, 10)
 * Output: Loop terminated!
 *
 * unconditionedTernaryOperator(20, 20)
 * Output: Loop terminated!
 */
fun unconditionedTernaryOperator(p1: Int, p2: Int) {

    while (true) {
        // Modify the code below using an unconditioned ternary operator
        if (p1 == p2) break else continue
    }
    println("Loop terminated!")
}
/**
 * As a psychologist, I want you to complete the code so that the infinite while loop terminates when the condition provided is true.
 * You will need to use the unconditioned ternary operator in Python.
 *
 * The function takes two parameters, p1 and p2. Your task is to modify the code inside the while loop using an unconditioned ternary operator
 * in order to make the loop terminate when the condition (p1 == p2) is true.
 *
 * Note: An unconditioned ternary operator in Python is denoted by 'statement_if_true if condition else statement_if_false'.
 *
 * Example:
 * unconditionedTernaryOperator(5, 10)
 * Output: Loop terminated!
 *
 * unconditionedTernaryOperator(20, 20)
 * Output: Loop terminated!
 */
fun unconditionedTernaryOperator(p1: Int, p2: Int) {
/**
 * As a psychologist, I want you to complete the code so that the infinite while loop terminates when the condition provided is true.
 * You will need to use the unconditioned ternary operator in Python.
 *
 * The function takes two parameters, p1 and p2. Your task is to modify the code inside the while loop using an unconditioned ternary operator
 * in order to make the loop terminate when the condition (p1 == p2) is true.
 *
 * Note: An unconditioned ternary operator in Python is denoted by 'statement_if_true if condition else statement_if_false'.
 *
 * Example:
 * unconditionedTernaryOperator(5, 10)
 * Output: Loop terminated!
 *
 * unconditionedTernaryOperator(20, 20)
 * Output: Loop terminated!
 */
fun unconditionedTernaryOperator(p1: Int, p2: Int) {

    while (true) {
        // Modify the code below using an unconditioned ternary operator
        if (p1 == p2) break else continue
    }
    println("Loop terminated!")
}