A year is a leap year if it is divisible by 4 unless it is divisible by 100 but not by 400.
Write a program which prompts the user to enter a year, and then tells the user whether it is a leap year. If the user does not enter a valid year (i.e., a positive integer), the program should say as much and give the user another chance to enter a year.
Recently Asked Questions
- Stuck on each one, has to be multiple sentences have to be said about each Module -EDU 501 History and Policy in Education Module 1 Imagine you worked for a
- what is the principle coming out of Scott v Scott (1962)?
- I am looking for help to really understand the following two questions, so I can start on my essay as soon as possible. What is object relations theory and how