#!/usr/bin/env ruby # coding: utf-8 print("数字を入れる\n") age=gets.to_i name=gets.chomp printf("こんにちは。%dさいです。名前は%sです。",age,name)