for i in range(1,10):#i行
    for j in range(1,i+1):#j列
        print(f"{j}*{i}={str(j*i).rjust(2)}",end=" ")
    print()