import scala.util.control._ object learnning { def main(args:Array[String]):Unit={ val n:Int=10 println("第"+n+"个月兔子总数为"+fun(n)) val n1:Int=1 val n2:Int=100 var count:Int=0 //统计素数个数 for(i:Int<-n1 until n2){ if(isPrime(i)){ count=coun…
object learn { def main(args:Array[String]):Unit={ println("请输入两个数字:") var a:Int=Console.readLine().toInt var n:Int=Console.readLine().toInt println(expressed(a,n)+add(a,n)); val n1:Int = 100; compNumber(n1); println("请输入三个数字") var n2:…