Skip to content

Instantly share code, notes, and snippets.

@juliaigao
Created December 30, 2021 23:46
Show Gist options
  • Save juliaigao/1b6b0a9366988d8d7a47d0ba75309b64 to your computer and use it in GitHub Desktop.
Save juliaigao/1b6b0a9366988d8d7a47d0ba75309b64 to your computer and use it in GitHub Desktop.
def multiplication_table(n):
# Print header
for i in range(1, n + 1):
print(f"\t{i}", end="")
print()
for i in range(1, n + 1):
print(i, end=":\t")
for j in range(1, n + 1):
print(i * j, end="\t")
print()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment