Write a program that determines whether a year is a leap year or not:
1. Take an input from a user. It has to be a positive number since it is a ‘year’, if it is not give
user another try and then terminate if the input is still not a positive number (remember that 0 is
neither positive nor negative).
2. Write a function isLeap that checks if a year is a leap year (algorithm for ‘leap year’ can be
3. Don’t forget to test your function.
Write a Review
Leave a reply Cancel reply
Ask Your Question
We have verified professionals who are ready to answer your question.
Save Time and Money
We choose experts who can quickly answer your question and that suit your budget.
Get Your Answer
Your satisfaction is 100% guaranteed. You can keep on asking questions until you get the answer you need.