0
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 (it is the part of the question as i was not able to complete my question within the title section so i typed it here) for example func(1 ,3) 1 2 3 2 4 6 3 6 9
5 odpowiedzi
+ 3
for row in range(1, 4):
for col in range(1, 4):
print(row * col, end=' ')
print()
You'll have to put this in a function to make the parameters more dynamic, and probably add better formatting so that each number takes the same number of characters
+ 5
Post your code.
+ 3
You mean something like this
https://code.sololearn.com/ciwtkHPmttee/?ref=app
0
def multiplication_table(start, stop):
for x in range(start,stop+1):
for y in range(start,stop+1):
print(str(x*y), end=" ")
print()
- 1
@Pedro H.j I tried to solve it using nested for loop but, I was not able to solve it.....