Skip to content

Instantly share code, notes, and snippets.

@mariovisic
Created May 6, 2011 08:40
Show Gist options
  • Select an option

  • Save mariovisic/958639 to your computer and use it in GitHub Desktop.

Select an option

Save mariovisic/958639 to your computer and use it in GitHub Desktop.
def reverse_count
(1..10).reverse_each do |i|
puts i
end
end
reverse_count
10
9
8
7
6
5
4
3
2
1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment