Correct Date

Write a boolean function @correct_date(d,m,y)@ that tells us whether day
@d@ of month @m@ of year @y@ represents an actually correct date.
Argument @y@ is always an int between 1800 and 9999. The rules to decide
on february 29 for this interval of years can be found in exercise
X91228: “Leap Years (2)”.

Sample session

Problem information

Author: José Luis Balcázar

Generation: 2026-01-25T16:53:57.208Z

© Jutge.org, 2006–2026.
https://jutge.org
