Skip to content

Instantly share code, notes, and snippets.

@praserocking
Last active May 23, 2017 18:30
Show Gist options
  • Save praserocking/9148c68c4d169674e085e17cfefd454f to your computer and use it in GitHub Desktop.
Save praserocking/9148c68c4d169674e085e17cfefd454f to your computer and use it in GitHub Desktop.
def add(a,b)
a-b
end
def multiply(a,b)
result = 0
a.times do
result = add(result, b)
end
b
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment