Showing posts with label Leap Year. Show all posts
Showing posts with label Leap Year. Show all posts

Wednesday, October 23, 2019

Java Program to Check Leap Year

1. Introduction:


In this program, you'll learn to check if the given year is a leap year or not. This is checked using a if else statement.

A leap year is exactly divisible by 4 except for century years (years ending with 00). The century year is a leap year only if it is perfectly divisible by 400.

Java Program to Check Leap Year