Computer Science, asked by harshadbhaliya121, 7 months ago

This function prints out a multiplication table (where each number is the result of multiplying the first number
of its row by the number at the top of its column). Fill in the blanks so that calling multiplication_table(1,3) will
print out:
123
246
369
def multiplication_table(start, stop) :
for x in range (stop+1) :
for y in range (start,x):
print(str(x*y), end=" ")
print()
multiplication_table(1, 3)
# Should print the multiplication table shown above

Answers

Answered by Anonymous
0

Answer:

# Multiplication table (from 1 to 10) in Python

num = 12

# To take input from the user

# num = int(input("Display multiplication table of? "))

# Iterate 10 times from i = 1 to 10

for i in range(1, 11):

print(num, 'x', i, '=', num*i)

Answered by sanjithvarun
0

Answer:

def multiplication_table(start, stop):

for x in range(1,4):

 for y in range(1,4):

  print(str(x*y), end=" ")

 print()

multiplication_table(1, 3)

# Should print the multiplication table shown above

Explanation:

Output

1 2 3  

2 4 6  

3 6 9

Similar questions