a = [1,2,-3], [12, -5, 7]
summ = 0
for i in a:
for ii in i:
if ii < 0:
print(ii)
if ii % 5 == 0:
summ += ii
print(f"Сумма элементов кратных 5 = {summ}")
a = [1,2,-3], [12, -5, 7]
summ = 0
for i in a:
for ii in i:
if ii < 0:
print(ii)
if ii % 5 == 0:
summ += ii
print(f"Сумма элементов кратных 5 = {summ}")