Question: Program written in C Write a program that takes year as input and determine whether it is a leap year or not. A year can

Program written in CProgram written in C Write a program that takes year as input

Write a program that takes year as input and determine whether it is a leap year or not. A year can be called leap year if it follows the following properties: The year is evenly divisible 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. Sample Input and Output: (Your code should print the red texts on the screen. Black texts are sample user inputs) Sample Input Sample Output Enter Year: 1998 Enter Year: 1852 Enter Year: 2000 Enter Year: 1900 1998 is not a Leap Year 1852 is a Leap Year 2000 is a Leap Year 1900 is not a Leap Year

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!