#!/usr/bin/env ruby # -*- coding: utf-8 -*- def hello2 x=gets.chomp printf("%sさんこんにちは!\n",x) end printf("%s",hello2)