0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

java(条件分岐と繰り返し)

Posted at

##for文による繰り返し

for (int i = 0; i < 10; i++) {

int i = 0; 初期化処理
最初に1回だけ実行される文(ループ変数)
i < 10;   繰り返し条件
ループを継続するか否かを判定する条件式
i++     繰り返し時処理
}まで到達した直後に自動的に実行される文

##制御構造のネスト

if (height > 170) {
  if (eyesight > 1.0) {

「分岐の中に分岐」多重構造を入れ子ネストという

0
0
0

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
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?