命令 Instruction Type
Format
for (初期; 終了条件; 増減) for (initial value; termination; value decrease)
{ (
処理 Processing
} )
Commentary
一定回数繰り返します。 A certain number of repeats. 初期、終了条件、増減は省略することができます。 Initial value, termination, decrease in value can be omitted. for(;;)とすると無限ループになります。 for (;;) will be infinite loop. また、初期などは,(カンマ)で区切って複数列記することができます。 Also, the initial value, (comma) can be separated by more than one list.
サンプルコード Sample code
for (i=0; i<3; i++) for (i = 0; i <3; i + +)
{ (
outputs[0] = i; outputs [0] = i;
} )