write a program to prompt the user for 2 dates consisting of a month and a year and display the number of years and months between these 2 dates the two dates don t have to be in order
To calculate a positive year difference and the corresponding month difference, a. Subtract the earlier year from the later year to get the year difference. b. Subtract the month associated with the earlier year from the month associated with the later year. The month difference can be negative (see examples in the table below). In […]
