Answer:
x > y ? x : y
If x is greater than y, then x is the result of the expression else y is the result.
Explanation:
The conditional operator (?:) that compares the values of the variables x and y is known as the ternary conditional operator. It evaluates a Boolean expression and returns the result of one of the two expressions, depending on whether the Boolean expression evaluates to true or false.
The syntax for the conditional operator is as follows:
condition ? consequent : alternative
The first part is the condition, the second part is the consequent and the last part is the alternative.
If the condition is true, the consequent statement is executed else the alternative statement is executed.