Commit 9804f853 by BellCodeEditor

save project

parent bfa270ad
Showing with 12 additions and 0 deletions
......@@ -2,3 +2,14 @@ cs1 = 5
cs2 = 7
print(cs1,"x",cs2,"=",cs1*cs2) # 列
# 使用变量i和j,代替乘法算式里面的元素,打印出单个乘法算式
cs1 = 1
cs2 = 1
for i in range(9):
cs1 = 1
for j in range(i+1):
print( str (cs1) + "x" + str (cs2) + "=",end = "")
cs1 += 1
print("\n")
cs2 += 1
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment