Question: Write a program that asks the user to enter a year and the program should then display whether the year entered is or is not
Write a program that asks the user to enter a year and the program should then display whether the year entered is or is not a leap year.
To determine a leap year:
determine whether the year is divisible by with no remainder
and then if it is then it is a leap year if and only if it is divisible by with no remainder
For example, is a leap year but is not.
If the year is not divisible by then it is a leap year if and only if it is divisible by with no remainder
For example, is a leap year but is not.
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
