for x <- 0..10 do IO.puts "x is: #{x}" end #But elixir programmer use more the following style of "loop" using Enum Enum.each(0..9, fn x -> IO.puts "x is: #{x}" end)