# 99 Multiplication Table
# method One
# for I in range (1, 10):
# for J in range (1, i+1):
# print (' {}x{}={}\t '. Format (i, J, I*j), end= ")
# print ()
# method Two,
# print (' \ n '. Join (['%s*%s=%-2s '% (j,i,i*j) for J in Range (1,i+1)])-For I in range (1,10)])
#
# method Three,
# print (' \ n '. Join ('. {}*{}={} '. Format (i,j,i*j) for I in Range (1,j+1)])
# for J in Range (1,10)))
# method Four rectangular full format output 99 multiplication table
# for I in Range (1,10):
# for J in Range (1,10):
# print ("%d*%d=%2d"% (i,j,i*j), end= "")
# print ("")
# method Five left upper triangular format output 99 multiplication table
# for I in Range (1,10):
# for J in Range (i,10):
# print ("%d*%d=%2d"% (i,j,i*j), end= "")
# print ("")
# method six right upper triangular format output 99 multiplication table
# for I in Range (1,10):
# for K in range (1,i):
# print (end= "")
# for J in Range (i,10):
# print ("%d*%d=%2d "% (i,j,i*j), end=" ")
# print ("")
# method seven right lower triangular format output 99 multiplication table
# for I in Range (1,10):
# for K in range (1,10-i):
# print (end= "")
# for J in Range (1,i+1):
# product=i*j
# print ("%d*%d=%2d"% (i,j,product), end= "")
Span style= "COLOR: #808080" ># print ("")
#方法八 while loop
i=1
while i<=9:
J=1
while j<=i:
Print ("%d*%d=%-2d "% (i ,j,i*j) ,end=\t")
j+= 1
print ( "\n ")
I+=1
< Span style= "COLOR: #808080" > < Span style= "COLOR: #808080" > < Span style= "COLOR: #808080" > < Span style= "COLOR: #808080" >&NBSP;
Python3 99 multiplication Table Print fancy operation (and egg)