вот условие:
Массив
В массиве 4 на 4 напечатать сколько положительных,отрицательных и нулевых элементов содержится в каждом столбце
заранее спасибо!!!
program Arr;
var a:array[0..3,0..3] of integer;
i,j:integer;
plus,minus,nul:integer;
begin
//Гдето здесь нужно заполнить массив числами
for i:=0 to 3 do
begin
for j:=0 to 3 do
begin
if a[j,i]>0 then inc(plus);
if a[i,j]<0 then inc(minus);
if a[i,j]=0 then inc(nul);
end;
Writeln('V ',i+1,' Stolbce: ',plus,' pologitelnyh elementov,',
minus,' otricatelnyh i ',nul,' nulevyh elementov');
plus:=0;
minus:=0;
nul:=0;
end;
readln;
end.
if a[j,i]>0 then inc(plus);
if a[i,j]<0 then inc(minus);
if a[i,j]=0 then inc(nul); if a[j,i]>0 then inc(plus) else
if a[i,j]<0 then inc(minus) else
inc(nul);