Если я правильно понял то вот:
for i in range(1, 10, 2):
for n in range(2, 11, 2):
print(i, '*', n, '=', i * n)
print('\n')
Вывод будет:
1 * 2 = 2
1 * 4 = 4
1 * 6 = 6
1 * 8 = 8
1 * 10 = 10
3 * 2 = 6
3 * 4 = 12
3 * 6 = 18
3 * 8 = 24
3 * 10 = 30
5 * 2 = 10
5 * 4 = 20
5 * 6 = 30
5 * 8 = 40
5 * 10 = 50
7 * 2 = 14
7 * 4 = 28
7 * 6 = 42
7 * 8 = 56
7 * 10 = 70
9 * 2 = 18
9 * 4 = 36
9 * 6 = 54
9 * 8 = 72
9 * 10 = 90
Copyright © 2024 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
Если я правильно понял то вот:
for i in range(1, 10, 2):
for n in range(2, 11, 2):
print(i, '*', n, '=', i * n)
print('\n')
Вывод будет:
1 * 2 = 2
1 * 4 = 4
1 * 6 = 6
1 * 8 = 8
1 * 10 = 10
3 * 2 = 6
3 * 4 = 12
3 * 6 = 18
3 * 8 = 24
3 * 10 = 30
5 * 2 = 10
5 * 4 = 20
5 * 6 = 30
5 * 8 = 40
5 * 10 = 50
7 * 2 = 14
7 * 4 = 28
7 * 6 = 42
7 * 8 = 56
7 * 10 = 70
9 * 2 = 18
9 * 4 = 36
9 * 6 = 54
9 * 8 = 72
9 * 10 = 90