**here i am getting multiplication table using print statement.**

```
userNum = int(input("enter a number:"))

def multiply(n):

    comp = 10
    count = 0
    while comp > count:
        count+=1
        z = n*count
        y = "{1} * {2} = {0}".format(z,n,count)
        print(y)
     multiply(userNum)

```

here i am getting only 5 \*1 = 5.it does not execute other despite using loops

```
userNum = int(input("enter a number:"))

def multiply(n):

    comp = 10
    count = 0
    while comp > count:
        count+=1
        z = n*count
        y = "{1} * {2} = {0}".format(z,n,count)
        return y
      a = multiply(userNum)
     print(a)

```