LoginSignup
2
2

More than 1 year has passed since last update.

Ruby 入力のループ

Posted at

1行ずつ10個のデータを入力し、出力するRubyプログラムを作りました。

for i in 1..10 do
    #標準入力
    input = gets
    #標準出力
    puts input
end
2
2
2

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
2