Question: Write a program that asks the user for a year ( int ) and checks if a given year ( int ) is a leap
Write a program that asks the user for a year int and checks if a given year int is a
leap year. Leap years are divisible by If a year is divisible by but not divisible by
that year is skipped. Then return to the users using the following sentences: given
yearis not a leap year. or given yearis 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
