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
5
Task/Integer-sequence/Lingo/integer-sequence-1.lingo
Normal file
5
Task/Integer-sequence/Lingo/integer-sequence-1.lingo
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
i = 1
|
||||
repeat while i>0
|
||||
put i
|
||||
i = i+1
|
||||
end repeat
|
||||
2
Task/Integer-sequence/Lingo/integer-sequence-2.lingo
Normal file
2
Task/Integer-sequence/Lingo/integer-sequence-2.lingo
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
put the maxInteger
|
||||
-- 2147483647
|
||||
4
Task/Integer-sequence/Lingo/integer-sequence-3.lingo
Normal file
4
Task/Integer-sequence/Lingo/integer-sequence-3.lingo
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
put the maxInteger+1
|
||||
-- -2147483648
|
||||
put the maxInteger+2
|
||||
-- -2147483647
|
||||
17
Task/Integer-sequence/Lingo/integer-sequence-4.lingo
Normal file
17
Task/Integer-sequence/Lingo/integer-sequence-4.lingo
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
the floatPrecision = 0 -- forces floats to be printed without fractional digits
|
||||
|
||||
put float(the maxInteger)+1
|
||||
-- 2147483648
|
||||
|
||||
-- max. whole value that can be stored as 8-byte-float precisely
|
||||
maxFloat = power(2,53) -- 9007199254740992.0
|
||||
|
||||
i = 1.0
|
||||
repeat while i<=maxFloat
|
||||
put i
|
||||
i = i+1
|
||||
end repeat
|
||||
-- 1
|
||||
-- 2
|
||||
-- 3
|
||||
-- ...
|
||||
Loading…
Add table
Add a link
Reference in a new issue