Attention: Compiler Under Construction

⚠️ The compiler is still under construction. While executing, the output may sometimes match the expected result, but it could still show incorrect output. Please be aware of this.

⛔ Each test case is case-sensitive, so ensure that every letter is correctly capitalized or lowercase as expected.

VedPad

30. Ask the user for a username input, assign it to a variable, and check if it matches a predefined username. Print 'Access Granted' if it matches, otherwise print 'Access Denied'.

Expected Output:

'Access Granted' or 'Access Denied' depending on user input

Test Cases

Test Case 1:

Input:

admin

Output:

Access Granted

Test Case 2:

Input:

user123

Output:

Access Denied

Test Case 3:

Input:

Admin

Output:

Access Denied

Test Case 4:

Input:

guest

Output:

Access Denied

⌛ Waiting for execution...

VedPad

Font
Loading...

Your Output