diff --git a/hello.rb b/hello.rb index b7ac5f6..0a74266 100755 --- a/hello.rb +++ b/hello.rb @@ -1,9 +1,7 @@ #!/usr/bin/env ruby # -*- coding: utf-8 -*- -puts("こんにちわ!") -puts("後藤慶大です。") -puts("よろしく!") - - +print("数字を入れる\n") +nanrei = gets.to_i +printf("%d歳ですね。\n",nenrei)