Loops/Continue: Difference between revisions

Ada
(added perl and python)
(Ada)
Line 2:
1, 2, 3, 4, 5
6, 7, 8, 9, 10
 
=={{header|Ada}}==
Ada has no continue reserved word, nor does it need one. The continue reserved word is only syntactic sugar for operations that can be achieved without it as in the following example.
 
<ada>
with Ada.Text_Io; use Ada.Text_Io;
 
procedure Loop_Continue is
begin
for I in 1..10 loop
Put(Integer'Image(I));
if I mod 5 = 0 then
New_Line;
else
Put(",");
end if;
end loop;
end Loop_Continue;
</ada>
 
=={{header|C}}==
Anonymous user