Sha256: 53a075a74ae00f04d5fa778efb37a83bc76a1e3bf952c4252d678d7bf99dc3d1

Contents?: true

Size: 93 Bytes

Versions: 14

Compression:

Stored size: 93 Bytes

Contents

# section_6/part_1/answer.rb
# 6-1-array.rb
nums = [3, 1, 4, 1, 5]

print nums[ARGV[0].to_i]

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
ruby_learner-1.1.14 questions/sequential_check/section_6/part_1/lib/answer.rb
ruby_learner-1.1.13 questions/sequential_check/section_6/part_1/lib/answer.rb
ruby_learner-1.1.11 questions/sequential_check/section_6/part_1/lib/answer.rb
ruby_learner-1.1.10 questions/sequential_check/section_6/part_1/lib/answer.rb
ruby_learner-1.1.9 questions/sequential_check/section_6/part_1/lib/answer.rb
ruby_learner-1.1.8 questions/sequential_check/section_6/part_1/lib/answer.rb
ruby_learner-1.1.7 questions/sequential_check/section_6/part_1/lib/answer.rb
ruby_learner-1.1.6 questions/sequential_check/section_6/part_1/lib/answer.rb
ruby_learner-1.1.5 questions/sequential_check/section_6/part_1/lib/answer.rb
ruby_learner-1.1.4 questions/sequential_check/section_6/part_1/lib/answer.rb
ruby_learner-1.1.3 questions/sequential_check/section_6/part_1/lib/answer.rb
ruby_learner-1.1.2 questions/sequential_check/section_6/part_1/lib/answer.rb
ruby_learner-1.1.1 questions/sequential_check/section_6/part_1/lib/answer.rb
ruby_learner-1.1.0 questions/sequential_check/section_6/part_1/lib/answer.rb