n=int(input("Enter the number for which table has to be printed:"))
j=int(input("Enter the range for which the table has to be printed:"))

i=1
'''for i in range(i,j+1):
    print( n*i) '''


while i<j+1:
      #print(n*i)
      #print "%d*%d=%d" %(n,i,n*i)
      print n ," * ",j," = ",n*j
      i=i+1
