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,20 @@
|
|||
see "11^5 = " + ipow(11, 5) + nl
|
||||
see "pi^3 = " + fpow(3.14, 3) + nl
|
||||
|
||||
func ipow a, b
|
||||
p2 = 1
|
||||
for i = 1 to 32
|
||||
p2 *= p2
|
||||
if b < 0 p2 *= a ok
|
||||
b = b << 1
|
||||
next
|
||||
return p2
|
||||
|
||||
func fpow a, b
|
||||
p = 1
|
||||
for i = 1 to 32
|
||||
p *= p
|
||||
if b < 0 p *= a ok
|
||||
b = b << 1
|
||||
next
|
||||
return p
|
||||
Loading…
Add table
Add a link
Reference in a new issue