Program massiv; Uses crt; Var a:array [0..15] of integer; i:integer; begin For i:=1 to 15 do begin a[i]:=random(100); If a[i]=0 then a[i]:=28; writeln(a[i]); end; end.
Var i,n:integer; a:array[1..1000] of integer; begin write('введите кол-во элементов'); read(n); for i:=1 to n do begin a[i]:=random(10);write(a[i]); end; for i:=1 to n do begin if a[i]=0 then a[i]:=28; write(a[i]); end; end.
Uses crt;
Var a:array [0..15] of integer;
i:integer;
begin
For i:=1 to 15 do
begin
a[i]:=random(100);
If a[i]=0 then a[i]:=28;
writeln(a[i]);
end;
end.
a:array[1..1000] of integer;
begin
write('введите кол-во элементов');
read(n);
for i:=1 to n do begin
a[i]:=random(10);write(a[i]);
end;
for i:=1 to n do begin
if a[i]=0 then a[i]:=28;
write(a[i]);
end;
end.