Practice Real Company Assessment Patterns • Latest 2025–2026 Mock Tests

Programming Exercises

Write a program that takes a hardcoded year and checks if it is a leap year.

Easy

Problem Statement

Write a program that takes a hardcoded year and checks if it is a leap year.

Sample Input

Year: 2024

Sample Output

2024 is a Leap Year

Limits

Time: 2s · Memory: 256 MB

Code Editor
00:00
using System; class LeapYearCheck { static void Main() { // Check if the hardcoded year is a leap year } }
Log in or sign up to run or submit your code.Log inSign up
Input
Year: 2024
Expected Output
2024 is a Leap Year