Write a program that takes three integers as input from the user: day, month and year. It's necessary to determine whether the date exists. The program takes into account leap days and considers the AD years to be correct.
Example: input - 35 13 2020 output - false
input - 29 2 2020 output - true
It is recommended to use switch/ else, else if
Aucun commentaire:
Enregistrer un commentaire