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
|
|
@ -0,0 +1,12 @@
|
|||
ask "enter 2 numbers (comma separated)"
|
||||
if it is not empty then
|
||||
put item 1 of it into n1
|
||||
put item 2 of it into n2
|
||||
put sum(n1,n2) into ai["sum"]
|
||||
put n1 * n2 into ai["product"]
|
||||
put n1 div n2 into ai["quotient"] -- truncates
|
||||
put n1 mod n2 into ai["remainder"]
|
||||
put n1^n2 into ai["power"]
|
||||
combine ai using comma and colon
|
||||
put ai
|
||||
end if
|
||||
|
|
@ -0,0 +1,5 @@
|
|||
-2,4 - power:16,product:-8,quotient:0,remainder:-2,sum:2
|
||||
2,-4 - power:0.0625,product:-8,quotient:0,remainder:2,sum:-2
|
||||
-2,-4 - power:0.0625,product:8,quotient:0,remainder:-2,sum:-6
|
||||
2,4 - power:16,product:8,quotient:0,remainder:2,sum:6
|
||||
11,4 - power:14641,product:44,quotient:2,remainder:3,sum:15
|
||||
Loading…
Add table
Add a link
Reference in a new issue