Sha256: b04dbd4afc8910f228ce31cb03b6b4a182201c1562e7859d1699463b59482e8f

Contents?: true

Size: 305 Bytes

Versions: 37

Compression:

Stored size: 305 Bytes

Contents

1つの数値をnとして受け取り、1からnまでの数を順番に表示するプログラムを作成せよ。

- while文

while 繰り返し続ける条件
  繰り返したい処理
end

繰り返しを行うための基本的な構文。
条件が成り立つ限り、処理を繰り返す。

Version data entries

37 entries across 24 versions & 1 rubygems

Version Path
ruby_learner-1.1.9 takahashi/sample_prog/question/5_1.org
ruby_learner-1.1.8 questions/sequential_check/section_5/part_1/lib/sentence.org
ruby_learner-1.1.8 takahashi/sample_prog/question/5_1.org
ruby_learner-1.1.7 questions/sequential_check/section_5/part_1/lib/sentence.org
ruby_learner-1.1.7 takahashi/sample_prog/question/5_1.org
ruby_learner-1.1.6 takahashi/sample_prog/question/5_1.org
ruby_learner-1.1.6 questions/sequential_check/section_5/part_1/lib/sentence.org
ruby_learner-1.1.5 takahashi/sample_prog/question/5_1.org
ruby_learner-1.1.5 questions/sequential_check/section_5/part_1/lib/sentence.org
ruby_learner-1.1.4 takahashi/sample_prog/question/5_1.org
ruby_learner-1.1.4 questions/sequential_check/section_5/part_1/lib/sentence.org
ruby_learner-1.1.3 takahashi/sample_prog/question/5_1.org
ruby_learner-1.1.3 questions/sequential_check/section_5/part_1/lib/sentence.org
ruby_learner-1.1.2 questions/sequential_check/section_5/part_1/lib/sentence.org
ruby_learner-1.1.2 takahashi/sample_prog/question/5_1.org
ruby_learner-1.1.1 takahashi/sample_prog/question/5_1.org
ruby_learner-1.1.1 questions/sequential_check/section_5/part_1/lib/sentence.org