Question: In C + + , Write a function leap to determine if a given year is a leap year. The function should take a year

In C++,Write a function leap to determine if a given year is a leap year. The function should take a year number as an input parameter and return 1 if it is a leap year and 0 if it is not a leap year. Assume that a leap year follows these rules: if the year number is divisable by 400 it is also 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!