Question: I need help on writing out a code for this. * TODO: Test 6 * Given an integer variable year, determine if the year is

I need help on writing out a code for this.

I need help on writing out a code for this. * TODO:

* TODO: Test 6 * Given an integer variable year, determine if the year is * a leap year. If it is, return true, otherwise return false. * * Tips : * - A leap year is a year visible by 4, but not divisible by 100. * However, years divisible by 400 are also consider to be leap years. * * Example input: * 1979 * * Example output: * - false * static bool Test6(int year) return false

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 Programming Questions!