โ Back to If Statements
Question 317
Login Check
Login Check
Read a username on the first line and a password on the second line. Access is granted only when the username isadminAND the password issecret. PrintAccess grantedwhen both match, otherwise printAccess denied. For example, for inputadminthen1234, print: Access denied
Expected Output:
Access denied
Topics:
If Statements
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.