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

25. Ask the user for their age, assign it to a variable, and check if they are eligible to vote (18 or above). Print 'Eligible to vote' or 'Not eligible to vote'.

Expected Output:

'Eligible to vote' or 'Not eligible to vote' depending on user input

Test Cases

Test Case 1:

Input:

20

Output:

Eligible to vote

Test Case 2:

Input:

17

Output:

Not eligible to vote

Test Case 3:

Input:

18

Output:

Eligible to vote

Test Case 4:

Input:

16

Output:

Not eligible to vote

⌛ Waiting for execution...

VedPad

Font
Loading...

Your Output