forked from solstice/solstice
Add fib test
This commit is contained in:
15
tests/fib.sols
Normal file
15
tests/fib.sols
Normal file
@@ -0,0 +1,15 @@
|
|||||||
|
a = 0
|
||||||
|
b = 1
|
||||||
|
n = 92
|
||||||
|
|
||||||
|
i = 0
|
||||||
|
|
||||||
|
while i != n {
|
||||||
|
temp = a + b
|
||||||
|
a = b
|
||||||
|
b = temp
|
||||||
|
|
||||||
|
i = i + 1
|
||||||
|
}
|
||||||
|
|
||||||
|
puts a
|
||||||
Reference in New Issue
Block a user