Var i,j: integer;
chislo: string;
begin
chislo:='12323';
for j:=1 to 14 do
begin
i:=1;
while i<=length(chislo) do
begin
if copy(chislo,i,1)='1' then begin delete(chislo,i,1);insert('33',chislo,i); inc(i); end;
inc(i);
end;
i:=1;
while i<=length(chislo) do
begin
if copy(chislo,i,1)='2' then begin delete(chislo,i,1);insert('1',chislo,i); end;
inc(i);
end;
i:=1;
while i<=length(chislo) do
begin
if copy(chislo,i,1)='3' then begin delete(chislo,i,1);insert('2',chislo,i); end;
inc(i);
end;
end;
Writeln(chislo);
readln;
end.
<em>// PascalABC.NET 3.2, сборка 1334 от 12.11.2016</em>
begin
var a:=ArrRandom(30,100,500); a.Println;
a.where(x->x.IsEven).Println(',')
end.
Пример
290 113 132 216 290 437 425 260 107 439 258 498 306 367 335 460 157 470 311 284 123 226 257 392 321 141 361 340 457 276
290,132,216,290,260,258,498,306,460,470,284,226,392,340,276
Электронная вычислительная машина выполнена на электронных элементах (логические, запоминающие, индикационные)
Элементная основа :
релейные
ламповые
ферритдиодные
транзисторные дискретные
транзисторные интегральные