Ответ:
a = [0] * 10
for i in range(10):
a[i] = [0] * 10
for i in range (10):
for j in range (10):
a[i][j] = (i+1)*(j+1)
print("%5d" % (a[i][j]),end="")
print()
или
a = [[(i+1)*(j+1) for j in range(10)] for i in range(10)]
Объяснение:
картинка
Copyright © 2025 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
Ответ:
a = [0] * 10
for i in range(10):
a[i] = [0] * 10
for i in range (10):
for j in range (10):
a[i][j] = (i+1)*(j+1)
print("%5d" % (a[i][j]),end="")
print()
или
a = [[(i+1)*(j+1) for j in range(10)] for i in range(10)]
for i in range (10):
for j in range (10):
print("%5d" % (a[i][j]),end="")
print()
Объяснение:
картинка