Logo

Programming-Idioms

History of Idiom 2 > diff from v23 to v24

Edit summary for version 24 by :
New Ada implementation by user [Smaehtin]

Version 23

2016-01-08, 09:05:07

Version 24

2016-02-16, 15:01:07

Idiom #2 Print Hello 10 times

Loop to execute some code a constant number of times

Idiom #2 Print Hello 10 times

Loop to execute some code a constant number of times

Imports
with Ada.Text_IO;
use Ada.Text_IO;
Code
for I in 1 .. 10 loop
  Put_Line ("Hello");
end loop;
Demo URL
http://ideone.com/9xC8us