- Input:
- integer parameters
year1, month1, day1, year2, month2, day2
- integer parameters
- Output:
- integer
number of days
- integer
This program takes into account leap years
and the assumption that the start date
input is before the end date
.
If the start date
is the same as the end date
, the program returns 0 days.