program smena; uses crt; const size_row = 4; size_col = 7; type trow = array[1..size_row] of integer; tmatrix = array[1..size_col] of trow; procedure swap_cols(var mx: tmatrix; const i; j:integer); var T: trow; begin T := mx[i]; mx[i] := mx[j]; mx[j] := T end; procedure print(var mxL tmatrix); var i,j:integer; begin for i:=1 tp size_row do begin for j:=1 to size_col do write(mx[j][i]:4); writeln end; end; var mx:tmatrix; i,j:integer; n,z :integer; begin for i:=1 to size_col do for j:=1 to size_row do begin write('mx[',j:2,i:2,']='); readln(mx[i,j]; end; print(mx); for i:=1 to (size_col div 2) do swap_cols(mx,2*i-1,2*i); writeln; print(mx); end.