Zebra0.com

cpp errorsCheck for leap year

Check for leap year

In this example we ask the user to enter the date as mm/dd/year.

In the first date example, we only checked for the first slash. Here we check for the second slash also and also check for leap year.