===== PascalABC.NET =====
begin
var n := ReadInteger('n =');
var a := ReadArrInteger('Введи элементы массива:', n);
for var i := 0 to a.High do
if a[i].IsEven then
Print(i+1)
end.
PascalABC.NET
var mas := ReadArrInteger('Массив :',ReadInteger('n ='));
mas.Indices(x -> x.IsEven).Select(x -> x+1).Print('/');
===== PascalABC.NET =====
begin
var n := ReadInteger('n =');
var a := ReadArrInteger('Введи элементы массива:', n);
for var i := 0 to a.High do
if a[i].IsEven then
Print(i+1)
end.
PascalABC.NET
begin
var mas := ReadArrInteger('Массив :',ReadInteger('n ='));
mas.Indices(x -> x.IsEven).Select(x -> x+1).Print('/');
end.