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

26. Ask the user for a year input, assign it to a variable, check if it is a leap year or not, and print 'Leap Year' or 'Not a Leap Year'.

Expected Output:

'Leap Year' or 'Not a Leap Year' depending on user input

Test Cases

Test Case 1:

Input:

2020

Output:

Leap Year

Test Case 2:

Input:

1900

Output:

Not a Leap Year

Test Case 3:

Input:

2000

Output:

Leap Year

Test Case 4:

Input:

2023

Output:

Not a Leap Year

⌛ Waiting for execution...

VedPad

Font
Loading...

Your Output