View Problem

Perform an action a fixed number of times (FOR)

Display the string "Hello" five times like "HelloHelloHelloHelloHello"
ExpandDiskEdit
fantom
5.times { Env.cur.out.print("Hello") }
ExpandDiskEdit
fantom
for (i := 0; i < 5; i++)
Env.cur.out.print("Hello")
ExpandDiskEdit
fantom
(1..5).each { Env.cur.out.print("Hello") }

Submit a new solution for fantom
There are 34 other solutions in additional languages (clojure, cpp, csharp, erlang ...)