Add tasks for all the new languages
This commit is contained in:
parent
9dc3c2bb62
commit
bba7bfd280
13208 changed files with 134745 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