Skip to content

Instantly share code, notes, and snippets.

@mistyrinth
Created November 28, 2018 08:57
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/5a12219855f2e547d06b5c966ce92895 to your computer and use it in GitHub Desktop.
Save mistyrinth/5a12219855f2e547d06b5c966ce92895 to your computer and use it in GitHub Desktop.
str1 = "Japan"
str2 = "America"
str3 = "中国"
str4 = "イギリス"
if str1 > str2
puts "#{str2} よりも #{str1} のほうが大きいです"
else
puts "#{str1} よりも #{str2} のほうが大きいです"
end
if str1 > str3
puts "#{str3} よりも #{str1} のほうが大きいです"
else
puts "#{str1} よりも #{str3} のほうが大きいです"
end
if str4 > str3
puts "#{str3} よりも #{str4} のほうが大きいです"
else
puts "#{str4} よりも #{str3} のほうが大きいです"
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment