Skip to content

Instantly share code, notes, and snippets.

@AJFaraday
Created October 18, 2016 16:10
Show Gist options
  • Save AJFaraday/b9ef8271dd8c21ba6fec4adae8f458b7 to your computer and use it in GitHub Desktop.
Save AJFaraday/b9ef8271dd8c21ba6fec4adae8f458b7 to your computer and use it in GitHub Desktop.
def foo(n)
d1 = n - 1
d2 = 9 - (n - 1)
return (d1 * 10) + d2
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment