Java Program to Find if a given Year is a Leap Year for BTech CSE students.
Leap Year contains 366 days, which comes once every four years. Every leap year corresponds to these facts :
- A century year is a year ending with 00. A century year is a leap year only if it is divisible by 400.
- A leap year (except a century year) can be identified if it is exactly divisible by 4.
- A century year should be divisible by 4 and 100 both.
- A non-century year should be divisible only by 4.
- https://ide.geeksforgeeks.org/S3DSLXo19k<<<<<<< check out the program in the compiler for clarity.
Comments
Post a Comment