Computer Science, asked by harilalbanoth, 6 months ago


write the algríthem for printing
a multiplecation table.


زیبا​

Answers

Answered by jai696
4

Creates multiplication table for any provided number up to multiple of 100.

\large\mathsf\color{pink}{Solution\: using\: python\: 3}

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)))

\large\mathsf\color{lightgreen}useful?\: \color{white}\longrightarrow\: \color{orange}brainliest!

Similar questions