imagine that you are creating a simple calendar application. One of the most important functions of such an application & mdash; Do not allow the user to enter non -existent dates. For example, on February 30 or April 31.
rn
Write a program that asks the user to enter three numbers: day, month and year. Your task & mdash; Check if the introduced date is real. The program should take into account that in different months there are different days of days, as well as that there are leap years in which in February 29 days.
rn
rules for the rules for Inspections:
rn
rn - months with 31 days: January (1), March (3), May (5), July (7), August (8), October (10), December (12).
rn - months with 30 days: April (4), June (6), September, November (11).
rn - February (2) has 28 days in the usual year and 29 days in the temporal. Style = "Font-Size: 14pt;"> the year is a leap if it is divided by 4, but is not divided into 100, or if it is divided into 400.
rn Ol> rn The program should display the "correct date" if the date exists, and the "incorrect date" otherwise.
Input format
Day (integer)
month (integer)
year (whole Number)
Output format
The result of the check (line)
Hint
There will be no clue here, decide for yourself!