1行ずつ10個のデータを入力し、出力するRubyプログラムを作りました。
for i in 1..10 do
#標準入力
input = gets
#標準出力
puts input
end
More than 1 year has passed since last update.
1行ずつ10個のデータを入力し、出力するRubyプログラムを作りました。
for i in 1..10 do
#標準入力
input = gets
#標準出力
puts input
end
Register as a new user and use Qiita more conveniently