Write a function that tells if the date defined by a day @d@, month @m@ and year @y@ is valid or not.
| C++ | |
| C | |
| Java | |
| Python | |
|
To write this function, it is convinient to use the function for leap years of the exercise problem://problemsjutge.org:problems/p1/jpetit/traspas-funcio.pbm.
The parameter @y@ is between 1800 and 9999, both included.
You only need to submit the required procedure; your main program will be ignored.
Input/Output