Skip to content

Instantly share code, notes, and snippets.

@mistyrinth
Last active November 21, 2018 14:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mistyrinth/eb50669fb5cde75b6e740c17f5fdc33e to your computer and use it in GitHub Desktop.
Save mistyrinth/eb50669fb5cde75b6e740c17f5fdc33e to your computer and use it in GitHub Desktop.
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