Sign in to run tests against edge cases and save your code automatically.
Problem Description
Medium
Leap Year Checker
PROAlgorithms
Selection
Arithmetic
Write a program that takes a year as input and outputs "Leap" if it is a leap year, and "Not Leap" otherwise. A year is a leap year if it is divisible by 4 but not by 100, unless it is also divisible by 400.
Example Input
2024
Example Output
Leap
Success Rate:
0% (0 passed / 0 attempted)
Code
Draft auto-saved
Test Results
Click "Test Code" to evaluate your code against the tests.