Question: Using a for loop, write a program where given an array of 3 different years, the output will be either year so and so is
Using a for loop, write a program where given an array of different years, the output will be either year so and so is a leap year or year so and so is not a leap year based on:
All years divisible by are leap years
All years divisible by but not by are leap years
All years divisible by but not by are not leap years
All other years are not leap years
Test your program with the following array
A
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
