def fact(n:Int):Int={ if(n<=1) 1 else n*fact(n-1) } def fact_ { val n=readInt("整数:") val r=fact(n) println(r) fact_ } fact_