Add fib21 test
This commit is contained in:
parent
f0ff14e5b5
commit
10cc5e6e89
2 changed files with 30 additions and 0 deletions
10
test/fib21.lox
Normal file
10
test/fib21.lox
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
|
||||
var a = 0;
|
||||
var temp;
|
||||
|
||||
for(var b = 1; a < 10000; b = temp + b){
|
||||
print a;
|
||||
temp = a;
|
||||
a = b;
|
||||
}
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue