网站介绍:文章浏览阅读151次。1. 求斐波那契数package com.atguigu.chapter05.funimport scala.io.StdInobject Exercise01 { def main(args: Array[String]): Unit = { // 斐波那契 println("请输入n的值:") val n: Int = StdIn.readInt() var res: Int = fabonaqi(n) println("res=" + res) _scala递归函数选择题
- 链接地址:https://blog.csdn.net/qq_43437122/article/details/107014950
- 链接标题:Scala之递归的两个小练习_scala递归函数选择题-CSDN博客
- 所属网站:blog.csdn.net
- 被收藏次数:9608
- 网站标签:scala递归函数选择题