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