编辑代码

for i in 1...9 {
    for j in 1...i {
        print("\(j) * \(i) = \(i * j)\t", terminator: "")
    }
    print("")
}