Sha256: 46a42ef168fcbbc288424faf8fb52319f1a4aca994d9846663623cda3d1ddc7b

Contents?: true

Size: 109 Bytes

Versions: 14

Compression:

Stored size: 109 Bytes

Contents

# section_5/part_1/answer.rb
# 5-1-while.rb
n = ARGV[0].to_i
i = 1
while i <= n
  print i, "\n"
  i += 1
end

Version data entries

14 entries across 14 versions & 1 rubygems

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