functionName()//呼叫函式自身} Kotlin遞回函式範. ... println("Factorial of $number = $result") } fun factorial(n: Int): Long { return if(n == 1){ n.
確定! 回上一頁