Write a c program to determine whether the year entered


Write a C program to determine whether the year entered from the keyboard is a leap year. Display a message indicating whether the year is or is not a leap year.

To calculate this problem, a year is a leap year if it is evenly divisible by 4 and not by 100, or if it is evenly divisible by 400. Check the remainder of the division statements by using the % function. (Hint: It may help to have three variables, each one holding the remainder of each of the division problems.)

(To check your work, legal leap years are 1952, 1964, 1988, and 2004. Years 1953, 1966, 1990, and 2007 are not leap years.)

Solution Preview :

Prepared by a verified Expert
C/C++ Programming: Write a c program to determine whether the year entered
Reference No:- TGS01248409

Now Priced at $20 (50% Discount)

Recommended (97%)

Rated (4.9/5)