Дан входной файл в котором нужно вывести все четные элементы.
Var a:array [1..10] of integer;I:integer;BeginFor i:=1 to 10 do beginRead (a [i]);If a[i]>0 then writeln (a [i]);End;end.
Оцени ответ
Вход
Регистрация
Задать вопрос
Var a:array [1..10] of integer;I:integer;BeginFor i:=1 to 10 do beginRead (a [i]);If a[i]>0 then writeln (a [i]);End;end.