Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
19
Task/Leap-year/Delphi/leap-year.delphi
Normal file
19
Task/Leap-year/Delphi/leap-year.delphi
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
program TestLeapYear;
|
||||
|
||||
{$APPTYPE CONSOLE}
|
||||
|
||||
uses
|
||||
SysUtils;
|
||||
|
||||
var
|
||||
Year: Integer;
|
||||
|
||||
begin
|
||||
Write('Enter the year: ');
|
||||
Readln(Year);
|
||||
if IsLeapYear(Year) then
|
||||
Writeln(Year, ' is a Leap year')
|
||||
else
|
||||
Writeln(Year, ' is not a Leap year');
|
||||
Readln;
|
||||
end.
|
||||
Loading…
Add table
Add a link
Reference in a new issue