-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMultiplication table.py
44 lines (40 loc) · 984 Bytes
/
Multiplication table.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
'''
Problem statement
Write a program that generates a multiplication table for a given integer.
Detailed explanation ( Input/output format, Notes, Images )
Constraints :
The input integer n is non-negative and less than or equal to 10,000.
Note:
The program should take an integer as input and print the first 10 multiples of the input integer. Each multiple should be printed on a new line. The program should not print anything else. The program should handle the case where the input integer is 0. In this case, the program should print ten lines of 0. The program does not need to handle invalid input. It can assume that the input will always be a valid integer within the specified constraints.
Sample Input 1 :
2
Sample Output 1 :
2
4
6
8
10
12
14
16
18
20
Sample Input 2 :
5
Sample Output 2 :
5
10
15
20
25
30
35
40
45
50
'''
## Read input as specified in the question.
n = int(input())
## Print output as specified in the question.
for i in range(1, 11):
print(i*n)