The Largest of Three Numbers with the Conditional Operator
EasyRead three integers and print the largest of them on one line in the form largest = 7. Find it with the conditional operator ?: rather than with if: either a single nested expression that compares a with b and then the winner with c, or two conditional assignments in a row. If the three integers cannot be read, print invalid input and return 1.
Success Criteria
Your code must pass 6 test case(s) to complete this exercise. 3 hint(s) are available if you need help.
Sign in to track your progress
You can work on exercises as a guest, but sign in to track your progress and save your submissions.
How did you find this exercise?
Your rating helps us improve the content.