Skip to content

Instantly share code, notes, and snippets.

@cato
Created March 23, 2011 01:12
Show Gist options
  • Select an option

  • Save cato/882444 to your computer and use it in GitHub Desktop.

Select an option

Save cato/882444 to your computer and use it in GitHub Desktop.
#!/usr/bin/env ruby
a = [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16]
a.each do |i|
puts i.to_s
if i % 4 == 0 then
puts ','
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment