import random
import math
from random import randint
n = 12
B = [[0] * n for i in range(n)]
print("Исходный массив B")
for i in range(n):
for j in range(n):
B[i][j]=randint(-50, 50)
for i in range(n):
for j in range(n):
print("%4d" % B[i][j], end = ' ')
print()
print()
A=[]
for j in range(n):
mn = B[0][j]
for i in range(n):
if B[i][j] >= 0 and B[i][j] < mn:
mn = B[i][j]
print(" %3d " % mn, end='')
from random import randint
n = 12
B = [[0] * n for i in range(n)]
print("Исходный массив B")
for i in range(n):
for j in range(n):
B[i][j]=randint(-50, 50)
for i in range(n):
for j in range(n):
print("%4d" % B[i][j], end = ' ')
print()
print()
A=[]
for j in range(n):
mn = B[0][j]
for i in range(n):
if B[i][j] < 0 and B[i][j] < mn:
mn = B[i][j]
print(" %3d " % mn, end='')