C program to print all Leap Year from 1 to N
This program will read value of N and print all Leap Years from 1 to N years. There are two conditions for leap year: 1- If year is divisible by 400 ( for Century years), 2- If year is divisible by 4 and must not be divisible by 100 (for Non Century years).
Print all Leap Years from 1 to N using C program
Output
need an explanation for this answer? contact us directly to get an explanation for this answer