blob: 2da99751f024f5a2b8e02446221c3c34ee5acf4f [file] [log] [blame]
package test
// this script expected parameter num : Int
fun fib(n: Int): Int {
val v = if(n < 2) 1 else fib(n-1) + fib(n-2)
return v
}
val result: Int = fib(num)
12