var a: array[1..10] of integer; i, Count: integer;begin for i := 1 to 10 do begin a[i] := i; Write(a[i], ' ') end; Writeln; for i := 1 to 10 do if a[i] mod 2 = 0 then begin Count := Count + 1; Write(a[i], ' '); end; Writeln; Write(Count); Readln;end.