CJCoding With Joseph

Login Check

Read a username on the first line and a password on the second line. Access is granted only when the username is admin AND the password is secret. Print Access granted when both match, otherwise print Access denied. For example, for input admin then 1234, print:

Access denied

Expected Output:

Access denied
Topics:
If Statements
๐Ÿ“ฅ Auto-Input:
admin\n1234
This input is automatically fed to your program's stdin
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.