4th Street Bar Hive-Bar

Hive-Bar Powered by Hive beta-fdb5b5b

Community post

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

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.

3 upvotes $0.00

Replies (0)

Conversation

No replies yet

Replies will appear here as people join the conversation.

Review before signing

Posting as . Signing with . Keychain permission: Posting. Hive Keychain will ask you to approve this action next.


  
Technical details

Operation fingerprint: