Advertisement
Guest User

Untitled

a guest
Nov 23rd, 2017
51
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. // Write a program to determine if an entered date (day/month/year) is valid. As part of the program write and use the following routines:
  2. // validDate() which takes a year, month and day and returns whether or not the date is valid.
  3. // dayInMonth() which takes a month (between 1 and 12) and year, and returns the number of days in the month.
  4. // isLeapYear() which takes a year and return whether or not it is a leap year.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement