Created
July 25, 2014 16:10
-
-
Save joellusky/c3a48579f0e7faf605a8 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 max (number1, number2) | |
if number1 > number2 | |
puts number1 | |
else | |
puts number2 | |
end | |
end | |
max(10,5) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment