• Sign in
  • Sign up 
  • Welcome
  • FAQ
  • Switch to Night Mode
  • Stolen Accounts Recovery 
  • Change Account Password 
  • Vote for Witnesses 
  • Steem Proposals 
  • Developer Portal 
  • Steem Bluepaper 
  • SMT Whitepaper 
  • Steem Whitepaper 
  • Privacy Policy
  • Terms of Service
Homeby Witness Moecki
LoginSign up

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

afjal.softcare (29)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.

#year #program #in #java
7 years ago in #leap by afjal.softcare (29)
$0.00
    2 votes
    • + member10softcare
    • + aaccee0038
    Reply 0