Program znanijatop; const n = 9;vari:byte; a:array[1..n] of byte;begin for i:=1 to n do beginwriteln('vvedite ',i,' element');readln(a[i]); end;for i:=1 to n do beginwriteln('do');write(a[i],' '); end;for i:=1 to n do beginif NOT Odd(i) thena[i]:=0; end;for i:=1 to n do beginwriteln('posle');write(a[i],' '); end;end.
Внимание! Если программа не работает, обновите версию!
begin
var a:=ReadArrReal(9);
for var i:=0 to 8 do
if i.IsOdd then a[i]:=0;
a.Println
end.
const n = 9;vari:byte;
a:array[1..n] of byte;begin
for i:=1 to n do beginwriteln('vvedite ',i,' element');readln(a[i]);
end;for i:=1 to n do beginwriteln('do');write(a[i],' ');
end;for i:=1 to n do beginif NOT Odd(i) thena[i]:=0;
end;for i:=1 to n do beginwriteln('posle');write(a[i],' ');
end;end.