Advertisement
akosiraff

LeapYear

Jun 9th, 2014
285
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.57 KB | None | 0 0
  1. Download: http://solutionzip.com/downloads/leapyear/
  2. Write a program that determines whether a year is a leap year or not:
  3. 1. Take an input from a user. It has to be a positive number since it is a ‘year’, if it is not give
  4. a
  5. user another try and then terminate if the input is still not a positive number (remember that 0 is
  6. neither positive nor negative).
  7. 2. Write a function isLeap that checks if a year is a leap year (algorithm for ‘leap year’ can be
  8. found online).
  9. 3. Don’t forget to test your function.
  10. Download: http://solutionzip.com/downloads/leapyear/
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement