properr names for scripts

This commit is contained in:
Alex Tkachman
2012-07-29 23:58:45 +03:00
parent f8391619a5
commit 7c2d394412
9 changed files with 69 additions and 12 deletions
+1 -1
View File
@@ -1,4 +1,4 @@
// this script expected parameter num : Int
// this script expects parameter num : Int
fun fib(n: Int): Int {
val v = if(n < 2) 1 else fib(n-1) + fib(n-2)
@@ -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)