Skip to content

Commit a89d0c7

Browse files
authored
added multiplication table program👩‍💻
1 parent 6510b17 commit a89d0c7

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# Multiplication table (from 1 to 10) in Python
2+
3+
num = 12
4+
5+
# To take input from the user
6+
# num = int(input("Display multiplication table of? "))
7+
8+
# Iterate 10 times from i = 1 to 10
9+
for i in range(1, 11):
10+
print(num, 'x', i, '=', num*i)

0 commit comments

Comments
 (0)