1024×768×2^8 цветов = 1024×768×8 бит = 6291456 бит = 786432 байт = 768 Кбайт
1.
uses crt;
const n=5;
var i,j,ans:integer;
a:array[1..n,1..n] of integer;
begin
randomize;
for i:=1 to n do
begin
for j:=1 to n do
begin
a[i,j]:=random(5,10);
write(a[i,j],' ');
end;
writeln();
end;
for i:=1 to n do
begin
ans:=0;
for j:=1 to n do
begin
if a[i,j]>7 then
ans:=ans+1;
end;
writeln('In ',i,': ',ans);
end;
<span>end.
2.
uses crt;
const n=3;
var i,j,t:integer;
a:array[1..n,1..n] of integer;
begin
writeln('Input array:');
for i:=1 to n do
for j:=1 to n do
read(a[i,j]);
for j:=1 to n do
begin
t:=a[1,j];
a[1,j]:=a[3,j];
a[3,j]:=t;
end;
for i:=1 to n do
begin
for j:=1 to n do
write(a[i,j],' ');
writeln();
end;
<span>end.</span></span>
Var i, k: integer;
N: array[1..10] of real;
begin
for i:=1 to 10 do readln(N[i]);
k:=1;
for i:=1 to 9 do
if k<>0 then
if N[i]<N[i+1] then k:=k+1
else k:=0;
if k<>0 then writeln('Ученики выстроены по росту')
else writeln('Ученики выстроены не по росту');
end.<span> </span>