add multiplication, division, and &&

This commit is contained in:
William Bell
2025-09-03 05:21:41 +01:00
parent df040adf45
commit 57728af0b6
10 changed files with 286 additions and 31 deletions

View File

@@ -1,4 +1,8 @@
let i = 1000000
let factorial(x) = do
if (x-1) return x * factorial(x-1)
return 1
let i = 10000000
term.log(factorial(10000))
while (i) do
i=i-1
term.log(add)
i=i-1