#!//Users/makoto/.rbenv/shims/ruby # -*- coding: utf-8 -*- while true print "必要なデータは?(qで終了): " koto = gets if koto == "q\n" then break end printf("%sですね!\n", koto.chomp) end