v0.3.1
This commit is contained in:
11
Tools/SpeedTest/fib.fig
Normal file
11
Tools/SpeedTest/fib.fig
Normal file
@@ -0,0 +1,11 @@
|
||||
fun fib(x:Int) -> Int
|
||||
{
|
||||
if (x <= 1)
|
||||
{
|
||||
return x;
|
||||
}
|
||||
return fib(x-1) + fib(x-2);
|
||||
}
|
||||
|
||||
var result := fib(25);
|
||||
__fstdout_println("result: ", result);
|
||||
Reference in New Issue
Block a user