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

in leap •  7 years ago 

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.

Authors get paid when people like you upvote their post.
If you enjoyed what you read here, create your account today and start earning FREE STEEM!