2
1

大文字小文字変換ツールを作成しました

#大文字に変換
def oomoji(msg)
    msg1 = msg.upcase
    return msg1
end

#小文字に変換
def komoji(msg)
    msg2 = msg.downcase
    return msg2
end
# 文字列の出力
def disp(msg)
    puts msg
end

name = 'test'
disp(name)
name1 = oomoji(name)
disp(name1)
name2 = komoji(name1)
disp(name2)
2
1
1

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
1