Skip to content

Instantly share code, notes, and snippets.

@jrun
Created November 28, 2008 14:37
Show Gist options
  • Save jrun/29996 to your computer and use it in GitHub Desktop.
Save jrun/29996 to your computer and use it in GitHub Desktop.
def f(i=1);return if i>100;s=(i%3==0?'Fizz':'')+(i%5==0?'Buzz' : '');puts(s.empty? ? i:s);f(i+1);end;f
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment