ex9.pp 227 B

1234567891011121314
  1. Program Example9;
  2. { This program demonstrates the IsValidDateDay function }
  3. Uses SysUtils,DateUtils;
  4. Var
  5. Y : Word;
  6. Begin
  7. For Y:=1996 to 2004 do
  8. if IsValidDateDay(Y,366) then
  9. Writeln(Y,' is a leap year');
  10. End.