โ Back to Printing
Question 26
Print Yes or No with a Ternary
Print Yes or No with a Ternary
A boolisOpenis true. Use a ternary (condition ? a : b) inside the output to print 'Yes' when it is true, otherwise 'No': Yes
Expected Output:
Yes
Topics:
Printing
Code Editor
1
Tab to indent ยท Ctrl+Enter to run ยท Ctrl+Space to expand shortcuts (cw, cr, fori)
Your Output
Run your code to see the output here...
Test Cases
Run your code to see test case results.