Sha256: 75f337782ed99707eb0f08f9b0e6cb63ba21b490c75f2ae84fa1110413c7b6b8

Contents?: true

Size: 622 Bytes

Versions: 35

Compression:

Stored size: 622 Bytes

Contents

「Hello, Ruby.」という文字列を表示するプログラムを作成せよ。文字列の終わりは改行すること。


- オブジェクト

Rubyにおいて、文字列、数値、時刻など、様々なデータを表現するための用語。


- print, puts

print 引数
puts 引数

引数として与えられた文字列を出力するメソッド。
putsメソッドはprintメソッドの処理に加え、与えられた文字列の末尾で改行を行う。

文字列は「"(ダブルクォート)」で囲われた文字の集合を指す。
改行は特殊文字「\n」を用いる。

Version data entries

35 entries across 24 versions & 1 rubygems

Version Path
ruby_learner-1.2.9 contents/takahashi/sample_prog/question/1_1.org
ruby_learner-1.2.8 contents/takahashi/sample_prog/question/1_1.org
ruby_learner-1.2.7 contents/takahashi/sample_prog/question/1_1.org
ruby_learner-1.2.6 contents/takahashi/sample_prog/question/1_1.org
ruby_learner-1.2.5 contents/takahashi/sample_prog/question/1_1.org
ruby_learner-1.2.4 contents/takahashi/sample_prog/question/1_1.org
ruby_learner-1.2.3 contents/takahashi/sample_prog/question/1_1.org
ruby_learner-1.2.2 contents/takahashi/sample_prog/question/1_1.org
ruby_learner-1.2.1 contents/takahashi/sample_prog/question/1_1.org
ruby_learner-1.2.0 contents/takahashi/sample_prog/question/1_1.org
ruby_learner-1.1.15 takahashi/sample_prog/question/1_1.org
ruby_learner-1.1.14 takahashi/sample_prog/question/1_1.org
ruby_learner-1.1.13 takahashi/sample_prog/question/1_1.org
ruby_learner-1.1.11 questions/sequential_check/section_1/part_1/lib/sentence.org
ruby_learner-1.1.11 takahashi/sample_prog/question/1_1.org
ruby_learner-1.1.10 questions/sequential_check/section_1/part_1/lib/sentence.org
ruby_learner-1.1.10 takahashi/sample_prog/question/1_1.org
ruby_learner-1.1.9 questions/sequential_check/section_1/part_1/lib/sentence.org
ruby_learner-1.1.9 takahashi/sample_prog/question/1_1.org
ruby_learner-1.1.8 questions/sequential_check/section_1/part_1/lib/sentence.org