Problem Statement 2

Write a program to check if the given year is a leap year or not. Input a year and check whether it’s a leap year. If the input year is a leap year, show a message “The given year is a leap year”. If the input year is not a leap year, show a message “This is not a leap year”.

SAMPLE INPUT

Enter year: 2019

SAMPLE OUTPUT

This is not a leap year

Sample Program:

Sample Output:

Enter year:
2022
This is not a leap year

Any queries leave a comment please and thanks for reading this post.

Leave a Reply

Your email address will not be published. Required fields are marked *