Logo

Programming-Idioms

This language bar is your friend. Select your favorite languages!
  • Kotlin
repeat(10) {
    println("Hello")
}
(0..9).forEach {
    println("Hello")
}

0..9 is inclusive
for(x in 1..10) {
     println("Hello")
}
with Ada.Text_IO;
use Ada.Text_IO;
for I in 1 .. 10 loop
  Put_Line ("Hello");
end loop;

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