-
-
Save mistyrinth/eb50669fb5cde75b6e740c17f5fdc33e to your computer and use it in GitHub Desktop.
This file contains 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 compare(num1, num2) | |
print("1つめの数字は ", num1, " です。\n") | |
print("2つめの数字は ", num2, " です。\n") | |
if num1 > num2 then | |
return num1 | |
else | |
return num2 | |
end | |
end | |
num = compare(25,44) | |
print(num, " のほうが大きいです!\n") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment