Write an expression using the conditional operator (? :) that compares the values of the variables x and y and results in the larger of the two.
LANGUAGE: C++
CHALLENGE:
Write an expression using the conditional operator (? 🙂 that compares the values of the variables x and y and results in the larger of the two.
SOLUTION:
x > y ? x : y