Program p25; uses crt; type matr=array[1..10,1..10] of integer; type vector=array[1..10] of integer; var n,m:integer;{razmernost' matrizi} z: integer;{chislo sravneniu} A,B,C:matr;{isxodnie matrizi} VA,VB,VC:vector;{rezyl'tat} {vvod elementov matrizi} procedure mv(name:char;n,m:integer; var A:matr); Var i,j:integer; begin for i:=1 to n do begin for j:=1 to m do begin write(' ',name,'[',i:1,',',j:1,']= '); readln(A[i,j]); end; end; end; {prozedyra pechati elementov matrizi} procedure mp(A:matr;n,m:integer); var i,j:integer; begin for i:=1 to n do begin for j:=1 to m do write(A[i,j]:4); writeln; end; end; {prozedyra pechati elementov vectora-rezyl'tata} procedure mprez(VA:vector;m:integer); var i:integer; begin for i:=1 to m do write(VA[i]:4); writeln; end; {prozedyra formirovaniya rezyl'tata} procedure mr(A:matr;z,n,m:integer;var VA:vector); var i,j,k:integer; begin for j:=1 to m do begin k:=0; for i:=1 to n do if A[i,j]>z then k:=k+1; VA[j]:=k; end; end; begin clrscr; writeln('Vvedite chislo dlya sravneniya'); Readln(z); Writeln('Vvedite razmernost pervou matrizi n i m '); readln(n,m); mv('A',n,m,A); writeln('matriza 1'); mp(A,n,m); mr(A,z,n,m,VA); writeln; writeln('rezyltat'); mprez(VA,m); readln; clrscr; writeln('vvedite ramernost 2 matrizi n i m'); readln(n,m); mv('B',n,m,B); writeln('matriza 2'); mp(B,n,m); mr(B,z,n,m,VB); writeln; writeln('rezyltat'); mprez(VB,m); readln; clrscr; writeln('vvedite ramernost 3 matrizi n i m'); readln(n,m); mv('C',n,m,C); writeln('matriza 3'); mp(C,n,m); mr(C,z,n,m,VC); writeln; writeln('rezyltat'); mprez(VC,m); readln; end.