Created
October 18, 2016 16:10
-
-
Save AJFaraday/b9ef8271dd8c21ba6fec4adae8f458b7 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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