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