Logo

Programming-Idioms

This language bar is your friend. Select your favorite languages!
  • Vb
Imports System
For x = 1 To 10
    Console.WriteLine("Hello")
Next x

Iterate from 1 to 10; print Hello on a new line.
It is optional to include the loop variable in the Next statement.
with Ada.Text_IO;
use Ada.Text_IO;
for I in 1 .. 10 loop
  Put_Line ("Hello");
end loop;

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