Mode:
Duration:
1
2
3
4
5
6
7
8
9
10
with Ada.Text_IO; use Ada.Text_IO;
procedure Even_Filter is
Arr : array(1..5) of Integer := (1,2,3,4,5);
begin
for I in Arr'Range loop
if Arr(I) mod 2 = 0 then
Put_Line(Integer'Image(Arr(I)));
end if;
end loop;
end Even_Filter;Coding works best on desktop or with an external keyboard.