Fun with Factorials
# Factorial recursive def factorial(number) if number == 1 return 1 else number * factorial(number - 1) end end # Factorial shorthand def fact(n) (1..n).reduce(:*) end