Python:
from math import cos, sin, fabs, atan
import random
matrix = []
row = 4
col = 4
x = 1
for i in range(row):
randomizer = []
for j in range(col):
randNumber = random.randint(-3, 11)
randomizer.append(randNumber)
matrix.append(randomizer)
for i in range(len(matrix)):
print(*matrix[i])
matrix_sum = 0
k = 0
for i in range(row):
for j in range(col):
x = fabs(atan(i*j))
print("x =", x)
ryad_dob = []
for i in range(row):
dob = 1
for j in range(col):
dob *= matrix[i][j]
k += 1
ryad_dob.append(dob)
print("Произведение ряда: ",dob)
print("Произведение элементов парных строк: ",*ryad_dob[1::2])