Sha256: 30d641a6a000d419c8bc17e5ac76181536996ea7356d78be52b258cb4ae0d6b7

Contents?: true

Size: 295 Bytes

Versions: 37

Compression:

Stored size: 295 Bytes

Contents

「All work and no play makes Jack a dull boy.」と5行表示するプログラムを作成せよ。


- timesメソッド

繰り返す回数.times do
  繰り返したい処理
end

繰り返す回数が決まっている場合は、timesメソッドを使ってシンプルにできる。

Version data entries

37 entries across 24 versions & 1 rubygems

Version Path
ruby_learner-1.2.9 contents/takahashi/sample_prog/question/5_2.org
ruby_learner-1.2.8 contents/takahashi/sample_prog/question/5_2.org
ruby_learner-1.2.7 contents/takahashi/sample_prog/question/5_2.org
ruby_learner-1.2.6 contents/takahashi/sample_prog/question/5_2.org
ruby_learner-1.2.5 contents/takahashi/sample_prog/question/5_2.org
ruby_learner-1.2.4 contents/takahashi/sample_prog/question/5_2.org
ruby_learner-1.2.3 contents/takahashi/sample_prog/question/5_2.org
ruby_learner-1.2.2 contents/takahashi/sample_prog/question/5_2.org
ruby_learner-1.2.1 contents/takahashi/sample_prog/question/5_2.org
ruby_learner-1.2.0 contents/takahashi/sample_prog/question/5_2.org
ruby_learner-1.1.15 takahashi/sample_prog/question/5_2.org
ruby_learner-1.1.14 takahashi/sample_prog/question/5_2.org
ruby_learner-1.1.14 questions/sequential_check/section_5/part_2/lib/sentence.org
ruby_learner-1.1.13 takahashi/sample_prog/question/5_2.org
ruby_learner-1.1.13 questions/sequential_check/section_5/part_2/lib/sentence.org
ruby_learner-1.1.11 takahashi/sample_prog/question/5_2.org
ruby_learner-1.1.11 questions/sequential_check/section_5/part_2/lib/sentence.org
ruby_learner-1.1.10 questions/sequential_check/section_5/part_2/lib/sentence.org
ruby_learner-1.1.10 takahashi/sample_prog/question/5_2.org
ruby_learner-1.1.9 questions/sequential_check/section_5/part_2/lib/sentence.org