-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathP16.py
More file actions
21 lines (18 loc) · 685 Bytes
/
P16.py
File metadata and controls
21 lines (18 loc) · 685 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
num = int(input("Enter the number : "))
if(num>1):
for i in range(1,11):
mul = num*i
print(num,"X",i,"=",mul)
''' Output
Enter the number : 4
4 X 1 = 4
4 X 2 = 8
4 X 3 = 12
4 X 4 = 16
4 X 5 = 20
4 X 6 = 24
4 X 7 = 28
4 X 8 = 32
4 X 9 = 36
4 X 10 = 40
'''