# _*_ coding: utf-8 _*_
# Author:Y.QQ
for i in range(1,10,1): #双重循环打印9X9乘法表
for j in range(1,i+1,1):
if j <= i :
print (j," X ",i," = ",i*j)
if i > 9 :
continue
i=1
while i<10: #双重循环打印9X9乘法表
j = 1
while j<i+1:
print (j," X ",i," = ",i*j)
j+=1
i+=1
for i in range(1,10,1): #双重循环打印9X9乘法表,搞定了换行的问题
for j in range(1,i+1,1):
if j <= i :
print("{0} X {1} = {2}".format(j, i, i*j), end=" ")
print("")
i=1
while i<10: #双重循环打印9X9乘法表,搞定了换行的问题
j = 1
while j<=i:
print("{0} X {1} = {2}".format(j, i, i*j), end=" ")
j+=1
i+=1
print("")