Skip to content

Commit 4bff2f1

Browse files
authored
creates multiplication table of any number
this program creates multiplication table of a number till 10 which is performed using for loop
1 parent 229f8d6 commit 4bff2f1

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Diff for: multiplication_table

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
num = int(input("Show the multiplication table of? "))
2+
# use for loop to iterate multiplication 10 times
3+
for i in range(1,11):
4+
print(num,'x',i,'=',num*i)

0 commit comments

Comments
 (0)