Question: In C + + , Write a function leap to determine if a given year is a leap year. The function should take a year
In CWrite 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 if it is a leap year and if it is not a leap year. Assume that a leap year follows these rules: if the year number is divisable by it is also a leap year.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
