Sha256: fe2a7eae76844d7165f168ac7306d9d3ecde62edff8248c6e70d7afcc8e3347e

Contents?: true

Size: 209 Bytes

Versions: 11

Compression:

Stored size: 209 Bytes

Contents

# section_5/part_2/answer.rb
# 5-2-times.rb
names = %w[tanaka nakamura sasaki suzuki]
index = 0

names.size.times do
  puts names[index]
  index += 1
end

# add your code.
names.each do |name|
  puts name
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
ruby_learner-1.2.9 contents/questions/sequential_check/section_5/part_2/lib/answer.rb
ruby_learner-1.2.8 contents/questions/sequential_check/section_5/part_2/lib/answer.rb
ruby_learner-1.2.7 contents/questions/sequential_check/section_5/part_2/lib/answer.rb
ruby_learner-1.2.6 contents/questions/sequential_check/section_5/part_2/lib/answer.rb
ruby_learner-1.2.5 contents/questions/sequential_check/section_5/part_2/lib/answer.rb
ruby_learner-1.2.4 contents/questions/sequential_check/section_5/part_2/lib/answer.rb
ruby_learner-1.2.3 contents/questions/sequential_check/section_5/part_2/lib/answer.rb
ruby_learner-1.2.2 contents/questions/sequential_check/section_5/part_2/lib/answer.rb
ruby_learner-1.2.1 contents/questions/sequential_check/section_5/part_2/lib/answer.rb
ruby_learner-1.2.0 contents/questions/sequential_check/section_5/part_2/lib/answer.rb
ruby_learner-1.1.15 questions/sequential_check/section_5/part_2/lib/answer.rb