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
13
Task/Arithmetic-Rational/Lingo/arithmetic-rational-3.lingo
Normal file
13
Task/Arithmetic-Rational/Lingo/arithmetic-rational-3.lingo
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
f = frac(2,3)
|
||||
put f.toString()
|
||||
-- "2/3"
|
||||
|
||||
-- fractions are normalized on the fly
|
||||
f = frac(4,6)
|
||||
put f.toString()
|
||||
-- "2/3"
|
||||
|
||||
-- casting integer to frac
|
||||
f = frac(23)
|
||||
put f.toString()
|
||||
-- "23/1"
|
||||
Loading…
Add table
Add a link
Reference in a new issue