3
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

入力して配列に入れるソースコードです


puts "データの入力個数を入力してください"
num1 = gets
num = num1.to_i
array1 = []
for i in 0...num do
  data = gets
  array1.push(data)
end

num2 = array1.length
for j in 0...num2 do
    puts array1[j]
end
3
2
0

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
3
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?