Skip to content

Instantly share code, notes, and snippets.

@praserocking
Last active May 23, 2017 18:30
Show Gist options
  • Save praserocking/1b09f893d253b63f134cbda4b912d67c to your computer and use it in GitHub Desktop.
Save praserocking/1b09f893d253b63f134cbda4b912d67c 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