write the algríthem for printing
a multiplecation table.
زیبا
Answers
Answered by
4
Creates multiplication table for any provided number up to multiple of 100.
def multiplication_table_gen(n):
return [f"{n}x{i} = {str(n * i)}" for i in range(1, 101)]
n = int(input("enter num: "))
print("\n".join(multiplication_table_gen(n)))
Similar questions