Problem1545--C Programming Practicals 3 logical if else

1545: C Programming Practicals 3 logical if else

Time Limit: 1 Sec  Memory Limit: 128 MB
Submit: 363  Solved: 208
[Submit] [Status] [Web Board] [Creator:]

Description

In the Gregorian calendar three criteria must be taken into account to identify leap years: The year can be evenly divided by 4; If the year can be evenly divided by 100, it is NOT a leap year, unless; The year is also evenly divisible by 400. Then it is a leap year. Write a c program to check whether a year is leap year or not.

Input

Enter a year 2000

Output

2000 is a leap year.

Sample Input Copy

2000

Sample Output Copy

2000 is a leap year.

Source/Category

114