A-M baby
This commit is contained in:
parent
764da6cbbb
commit
db842d013d
19005 changed files with 197040 additions and 7 deletions
8
Task/Leap-year/AppleScript/leap-year.applescript
Normal file
8
Task/Leap-year/AppleScript/leap-year.applescript
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
on leap_year(y)
|
||||
if (y mod 100 is equal to 0) then
|
||||
return (y mod 400 is equal to 0)
|
||||
end if
|
||||
return (y mod 4 is equal to 0)
|
||||
end leap_year
|
||||
|
||||
leap_year(1900)
|
||||
Loading…
Add table
Add a link
Reference in a new issue