Var z:array[1..16] of integer; k:array[1..16] of real; i,p,s:integer; max:real; Begin randomize; for i:=1 to 16 do z[i]:=random(101); write('Z='); for i:=1 to 16 do write(z[i],' '); writeln; writeln; p:=0; s:=0; for i:=1 to 16 do if (i mod 2)<>0 then begin s:=s+z[i]; p:=p*z[i]; end; writeln('P=',p); writeln('S=',s); writeln; for i:=1 to 16 do k[i]:=z[i]*exp(ln(i*z[i])/3); write('K='); for i:=1 to 16 do write(k[i]:0:0,' '); max:=k[1]; for i:=1 to 16 do if k[i]>max then max:=k[i]; writeln; writeln('max=',max:0:0); for i:=1 to 16 do if k[i]=max then k[i]:=0; write('K='); for i:=1 to 16 do write(k[i]:0:0,' '); End.
Var a:array[1..100,1..100] of integer; i,j,n,m,max,min:integer; begin write ('Введите количество строк: '); read(n); writeln; write ('Введите количество элементов в строке: '); read(m); writeln; writeln('Введите массив: '); for i:=1 to n do begin for j:=1 to m do begin write(' a[',i,',',j,']='); read(a[i,j]); end; writeln; end; writeln; writeln('Исходный массив: '); for i:=1 to n do begin for j:=1 to m do write(a[i,j],' '); writeln; end; writeln; writeln('Конечный массив: '); for i:=1 to n do begin min:=a[i,1]; max:=a[i,1]; for j:=2 to m do begin if (min>a[i,j]) then min:=a[i,j]; if (max
Var z:array[1..16] of integer; k:array[1..16] of real; i,p,s:integer; max:real;
Begin
randomize;
for i:=1 to 16 do z[i]:=random(101);
write('Z=');
for i:=1 to 16 do write(z[i],' ');
writeln;
writeln;
p:=0;
s:=0;
for i:=1 to 16 do
if (i mod 2)<>0 then
begin
s:=s+z[i];
p:=p*z[i];
end;
writeln('P=',p);
writeln('S=',s);
writeln;
for i:=1 to 16 do k[i]:=z[i]*exp(ln(i*z[i])/3);
write('K=');
for i:=1 to 16 do write(k[i]:0:0,' ');
max:=k[1];
for i:=1 to 16 do
if k[i]>max then max:=k[i];
writeln;
writeln('max=',max:0:0);
for i:=1 to 16 do
if k[i]=max then k[i]:=0;
write('K=');
for i:=1 to 16 do write(k[i]:0:0,' ');
End.