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.1.9 takahashi/sample_prog/question/5_2.org
ruby_learner-1.1.8 questions/sequential_check/section_5/part_2/lib/sentence.org
ruby_learner-1.1.8 takahashi/sample_prog/question/5_2.org
ruby_learner-1.1.7 questions/sequential_check/section_5/part_2/lib/sentence.org
ruby_learner-1.1.7 takahashi/sample_prog/question/5_2.org
ruby_learner-1.1.6 takahashi/sample_prog/question/5_2.org
ruby_learner-1.1.6 questions/sequential_check/section_5/part_2/lib/sentence.org
ruby_learner-1.1.5 takahashi/sample_prog/question/5_2.org
ruby_learner-1.1.5 questions/sequential_check/section_5/part_2/lib/sentence.org
ruby_learner-1.1.4 takahashi/sample_prog/question/5_2.org
ruby_learner-1.1.4 questions/sequential_check/section_5/part_2/lib/sentence.org
ruby_learner-1.1.3 takahashi/sample_prog/question/5_2.org
ruby_learner-1.1.3 questions/sequential_check/section_5/part_2/lib/sentence.org
ruby_learner-1.1.2 questions/sequential_check/section_5/part_2/lib/sentence.org
ruby_learner-1.1.2 takahashi/sample_prog/question/5_2.org
ruby_learner-1.1.1 takahashi/sample_prog/question/5_2.org
ruby_learner-1.1.1 questions/sequential_check/section_5/part_2/lib/sentence.org