with Ada.Text_IO,Ada.Integer_Text_IO;
use Ada.Text_IO,Ada.Integer_Text_IO;
procedure Automatic is
Dog,Cat:Integer;
Pig,Cow:Float;
begin
for Index in 1..10 loop
Put("The value of index is:");
Put(Index,3);
declare
START:constant Integer :=Index;
STOP:constant Integer :=START+5;
Count_Stuff:Integer;
begin
Count_Stuff:=START+STOP+Index+222;
Put("---->");
for Index in START..STOP loop
Put(Index,5);
end loop;
end;
New_Line;
end loop;
end Automatic;