RosettaCodeData/Task/Loops-Foreach/Ada/loops-foreach-1.ada
2014-01-17 05:34:36 +00:00

14 lines
213 B
Ada

with Ada.Integer_Text_IO;
use Ada.Integer_Text_IO;
procedure For_Each is
A : array (1..5) of Integer := (-1, 0, 1, 2, 3);
begin
for Num in A'Range loop
Put( A (Num) );
end loop;
end For_Each;