Gistlib Logo

gistlib

other ruby categories

loops code snippets in ruby

find the nth hexagonal number in ruby
find the nth prime number in ruby
find the shortest word in a string in ruby
how to find multiples of two numbers not exceeding some n? in ruby
on which types of things can i run the ruby for loop n.times do block? in ruby

gistlibby LogSnag