1 //实现梯形九九乘法表的效果 2 import Foundation 3 4 for var a in 1...9{ 5 for var b in 1...a{ 6 print("\(b)*\(a)=\(a*b) ",terminator:"\t") 7 } 8 print() 9 }
时间: 2024-11-06 19:58:31
1 //实现梯形九九乘法表的效果 2 import Foundation 3 4 for var a in 1...9{ 5 for var b in 1...a{ 6 print("\(b)*\(a)=\(a*b) ",terminator:"\t") 7 } 8 print() 9 }