object 九九乘法表 { def main( args:Array[String]): Unit = { for(i<- 1 to 9;j <- 1 to i){ print("\t"+i+"*"+j +"=" +i*j) if(j==i) println("\n") } } }