In the following options, ternary operators were used to find the maximum among two integer variables and store them in a new max variable. However, not all of them are correct. Select all correct ways to write an expression to find the max of two integer numbers a and b using ternary operator.
One-line condition with ternary operator
Find the maximum of two numbers
Report a typo
Select one or more options from the list
Create a free account to access the full topic
By continuing, you agree to the JetBrains Academy Terms of Service as well as Hyperskill Terms of Service and Privacy Policy.