第一种(while、while):
i=1
while i<=9:
j=1
while j<=i:
print(j,"*",i,"=",j*i,end="\t")
j+=1
print()
i+=1
第二种(for、for):
for i in range(1,10):
for j in range(1,i+1):
print(j,"*",i,"=",j*i,end="\t")
print()
第三种(while、for):
i=1
while i<=9:
for j in range(1,i+1):
print(j,"*",i,"=",j*i,end="\t")
print()
i+=1
第四种(for、while):
for i in range(1,10):
j=1
while j<=i:
print(j,"*",i,"=",j*i,end="\t")
j+=1
print()