Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
17
Task/Leap-year/Pascal/leap-year.pas
Normal file
17
Task/Leap-year/Pascal/leap-year.pas
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
program LeapYear;
|
||||
uses
|
||||
sysutils;//includes isLeapYear
|
||||
|
||||
procedure TestYear(y: word);
|
||||
begin
|
||||
if IsLeapYear(y) then
|
||||
writeln(y,' is a leap year')
|
||||
else
|
||||
writeln(y,' is NO leap year');
|
||||
end;
|
||||
Begin
|
||||
TestYear(1900);
|
||||
TestYear(2000);
|
||||
TestYear(2100);
|
||||
TestYear(1904);
|
||||
end.
|
||||
Loading…
Add table
Add a link
Reference in a new issue