Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
11
Task/Leap-year/Lasso/leap-year.lasso
Normal file
11
Task/Leap-year/Lasso/leap-year.lasso
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
define isLeapYear(y::integer) => {
|
||||
#y % 400 == 0 ? return true
|
||||
#y % 100 == 0 ? return false
|
||||
#y % 4 == 0 ? return true
|
||||
return false
|
||||
}
|
||||
|
||||
with test in array(2012,2016,1933,1900,1999,2000) do => {^
|
||||
isLeapYear(#test)
|
||||
'\r'
|
||||
^}
|
||||
Loading…
Add table
Add a link
Reference in a new issue