You must ensure that the user enters valid dates. This means a valid year, a val
ID: 3621361 • Letter: Y
Question
You must ensure that the user enters valid dates. This means a valid year, a valid month, and a valid day of the month. Your program should then start at the beginning date (which must not be after the ending date), and count each day until the ending date. The program should print out the Month and Year as it counts (NB: not the day).If you count a February that is in a leap year, note that in the output.The final output will be two items: the number of days and the number of leap years between the dates.