Java Program -09: Program to check whether the input year is leap or not

Words
41
Reading
1 min
Listen
Play
9y

lp.PNG

Program Solution:

Here, we will using Scanner class to get the input from user and then we are using if-else statements to write the logic to check leap year.

leap year.PNG

Output :

Enter any Year:
2001
2001 is not a Leap Year.

Java Program -09: Program to check whether the input year is leap o... | Ecency