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/Ursa/leap-year.ursa
Normal file
11
Task/Leap-year/Ursa/leap-year.ursa
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
decl int year
|
||||
set year (int args<1>)
|
||||
if (= (mod year 4) 0)
|
||||
if (and (= (mod year 100) 0) (not (= (mod year 400) 0)))
|
||||
out year " is not a leap year" endl console
|
||||
else
|
||||
out year " is a leap year" endl console
|
||||
end if
|
||||
else
|
||||
out year " is not a leap year" endl console
|
||||
end if
|
||||
Loading…
Add table
Add a link
Reference in a new issue