Allen Chen

Generation

generate functionThu, 30 Mar 2023

and the square numbers of 999 times times table

def square(x): return x * x def times_table(n): for i in range(1, n + 1): print(i, "times table") for j in range(1, n + 1): print(i, "*", j, "=", i * j) print() times_table(999)

Questions about programming?Chat with your personal AI assistant