Skip to content

Instantly share code, notes, and snippets.

@MahraibFatima
Created March 19, 2024 16:09
Show Gist options
  • Save MahraibFatima/d48416b9037ac43964f2c460e009867d to your computer and use it in GitHub Desktop.
Save MahraibFatima/d48416b9037ac43964f2c460e009867d to your computer and use it in GitHub Desktop.
Print the multiplication table for the entered number.
num = int(input("Enter a number: "))
for i in range(1, 11):
print(f"{num} x {i} = {num * i}")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment