for i in range(1,10): for j in range(1,i+1): print(j,'*',i,'=',i*j,sep='',end=' ') print()print() i=1while(i<10): j=1 while(j<=i): print("%d*%d=%d"%(j,i,i*j),end=' ') j=j+1 i=i+1 print()