検索

2012年4月11日水曜日

のんびりruby

少しずつでもrubyの勉強をしていこうと思います。

まずは定番の出力系コマンドから。

スクリプト
--------------------------------------------------

puts "hello"
print "hello"
print "hello\n"
print("hello\n")
p "hello"

--------------------------------------------------

実行結果
--------------------------------------------------

hello
hellohello
hello
"hello"

--------------------------------------------------

よし、頑張った。

0 件のコメント: