script renamed

This commit is contained in:
Alex Tkachman
2012-07-30 13:24:59 +03:00
parent c14a0b3c84
commit a98cd7aa0f
2 changed files with 2 additions and 2 deletions
@@ -0,0 +1,10 @@
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 = fib(num)