RosettaCodeData/Task/Loops-Continue/Ada/loops-continue.ada

16 lines
426 B
Ada
Raw Permalink Normal View History

2015-02-20 00:35:01 -05:00
with Ada.Text_IO;
use Ada.Text_IO;
2013-04-10 21:29:02 -07:00
procedure Loop_Continue is
begin
2015-02-20 00:35:01 -05:00
for I in 1..10 loop
Put (Integer'Image(I));
if I = 5 or I = 10 then
New_Line;
goto Continue;
end if;
Put (",");
2015-11-18 06:14:39 +00:00
<<Continue>> --Ada 2012 no longer requires a statement after the label
2015-02-20 00:35:01 -05:00
end loop;
2013-04-10 21:29:02 -07:00
end Loop_Continue;