โ Back to If Statements
Question 85
Nested If Entry Check
Nested If Entry Check
Create int age = 18 and boolean hasId = true. Use nested if statements to print: Entry allowed
Expected Output:
Entry allowed
Topics:
If Statements
Code Editor
1
Tab to indent ยท Ctrl+Enter to run ยท Ctrl+Space to expand shortcuts (sysout, psvm, fori)
Your Output
Run your code to see the output here...
Test Cases
Run your code to see test case results.