编辑代码

for(i<-1 to 9){
    for(j<-1 to i){
        print(j+"*"+i+"="+i*j+"\t")
    }
    println()
}