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.2.9 contents/takahashi/sample_prog/question/5_1.org
ruby_learner-1.2.8 contents/takahashi/sample_prog/question/5_1.org
ruby_learner-1.2.7 contents/takahashi/sample_prog/question/5_1.org
ruby_learner-1.2.6 contents/takahashi/sample_prog/question/5_1.org
ruby_learner-1.2.5 contents/takahashi/sample_prog/question/5_1.org
ruby_learner-1.2.4 contents/takahashi/sample_prog/question/5_1.org
ruby_learner-1.2.3 contents/takahashi/sample_prog/question/5_1.org
ruby_learner-1.2.2 contents/takahashi/sample_prog/question/5_1.org
ruby_learner-1.2.1 contents/takahashi/sample_prog/question/5_1.org
ruby_learner-1.2.0 contents/takahashi/sample_prog/question/5_1.org
ruby_learner-1.1.15 takahashi/sample_prog/question/5_1.org
ruby_learner-1.1.14 takahashi/sample_prog/question/5_1.org
ruby_learner-1.1.14 questions/sequential_check/section_5/part_1/lib/sentence.org
ruby_learner-1.1.13 takahashi/sample_prog/question/5_1.org
ruby_learner-1.1.13 questions/sequential_check/section_5/part_1/lib/sentence.org
ruby_learner-1.1.11 takahashi/sample_prog/question/5_1.org
ruby_learner-1.1.11 questions/sequential_check/section_5/part_1/lib/sentence.org
ruby_learner-1.1.10 questions/sequential_check/section_5/part_1/lib/sentence.org
ruby_learner-1.1.10 takahashi/sample_prog/question/5_1.org
ruby_learner-1.1.9 questions/sequential_check/section_5/part_1/lib/sentence.org