From bc956cfa6e38fa1d4b170b0a6bcd419e627c0788 Mon Sep 17 00:00:00 2001 From: unknownprogrammer12 <69003308+unknownprogrammer12@users.noreply.github.com> Date: Sat, 2 Oct 2021 13:15:43 +0530 Subject: [PATCH] Create multiplicationtable.py to display multiplication table of the no. given by the user --- multiplicationtable.py | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 multiplicationtable.py diff --git a/multiplicationtable.py b/multiplicationtable.py new file mode 100644 index 0000000..0060334 --- /dev/null +++ b/multiplicationtable.py @@ -0,0 +1,10 @@ +# Multiplication table (from 1 to 10) in Python + +num = 12 + +# 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)