LoginSignup
1

More than 5 years have passed since last update.

Ruby基礎の基礎 用語解説 while文

Posted at

メソッド:オブジェクトを扱うための手続き
引数:メソッドに渡す情報
変数:変数名:オブジェクト
a = 10 >> aは変数、10はオブジェクト

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

i = 1
while i <= 10
print i, "\n"
i = i +1
end

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1