Logo

Programming-Idioms

  • Smalltalk
  • Ada
with Ada.Text_IO;
use Ada.Text_IO;
for I in 1 .. 10 loop
  Put_Line ("Hello");
end loop;
10 timesRepeat: [Transcript showln: 'Hello'].
#include <stdio.h>
for (int i = 0; i < 10; i++) {
    printf("Hello\n");
}

Note the necessary newline (\n), not to print every time on the same line

New implementation...
< >
programming-idioms.org