Skip to content

Commit f2727b0

Browse files
authoredOct 2, 2020
Merge pull request #860 from yash-odint/patch-1
Example added for more user understanding
2 parents 08fcc69 + c81bb16 commit f2727b0

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed
 
+16
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,19 @@
11
n = int(input("Enter the number to print the tables for:"))
22
for i in range(1, 11):
33
print(n, "x", i, "=", n * i)
4+
5+
#Example
6+
#input: 2
7+
#output:
8+
"""
9+
2 x 1 = 2
10+
2 x 2 = 4
11+
2 x 3 = 6
12+
2 x 4 = 8
13+
2 x 5 = 10
14+
2 x 6 = 12
15+
2 x 7 = 14
16+
2 x 8 = 16
17+
2 x 9 = 18
18+
2 x 10 = 20
19+
"""

0 commit comments

Comments
 (0)
Please sign in to comment.