Java Program to Check Leap Year ( No talk, just code)

preview_player
Показать описание
Java Program to Check Leap Year or Not.

If the year is representing the beginning of a new century like 1600, 2200 etc, It should be divisible by 400. Then It is called a leap year.

If the year is not a century year like 1998, 2007, 2010, etc. It should be divisibly by 4. Then It becomes a leap year.

If any of the above two cases are not satisfied, then that year is called a leap year, otherwise it is not a leap year.

IDE Used : Visual Studio Code

Java Programs Playlist :

YouTube Channel : @RejoiceTech ​
Рекомендации по теме