diff --git a/namehello.rb b/namehello.rb new file mode 100755 index 0000000..5621c8b --- /dev/null +++ b/namehello.rb @@ -0,0 +1,10 @@ +#!usr/bin/env ruby +# -*- coding: utf-8 -*- + +def hello2(x) + printf("%sさんこんにちは\n",x) +end + +print"名前を入れてね" +namae=gets.chomp +hello2(namae)