Pascal
var a: array[1..n] of real;
n,i: real;
begin
write('vvedite kolichestvo elementov');
readln(n);
randomize;
for i:=1 to n do a[i]:=random(100);
for i:=1 to n do begin
if odd(i) then a[ i]:=a[ i]*2 else
a[ i]:=a[ i]/3;
end;
write(a[i]);
readln;
end.