Skip to content

Instantly share code, notes, and snippets.

@moulik-source
Created November 20, 2021 11:40
Show Gist options
  • Save moulik-source/d36a236cdd9521bd0d7193e8458e3f99 to your computer and use it in GitHub Desktop.
Save moulik-source/d36a236cdd9521bd0d7193e8458e3f99 to your computer and use it in GitHub Desktop.
multiplication table
# Multiplication table (from 1 to 10) in Python
num = int(input("Please enter the value: "))
# To take input from the user
# num = int(input("Display multiplication table of? "))
# Iterate 10 times from i = 1 to 10
for i in range(1, 11):
print(num, 'x', i, '=', num*i)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment