update benchmarks to match new syntax

This commit is contained in:
prod2 2022-02-09 07:01:52 +01:00
parent f79f4e47ba
commit 7e5dff3263
4 changed files with 6 additions and 6 deletions

View File

@ -4,4 +4,4 @@ while (x < 10000000)
x = x + 1
;
print x;
print (x);

View File

@ -99999,4 +99999,4 @@ x = x + 1;
x = x + 1;
x = x + 1;
x = x + 1;
print x;
print (x);

View File

@ -1,8 +1,8 @@
var fact = proc(n)
if (n > 0)
:result = n * fact(n-1)
n * fact(n-1)
else
:result = 1
1
;
var i = 0;

View File

@ -1,6 +1,6 @@
var fib = proc(n)
if (n < 2) :result = 1
else :result = fib(n-1) + fib(n-2)
if (n < 2) 1
else fib(n-1) + fib(n-2)
;
print (fib(37));