for (init; condition; update) { statements; }
for (init; condition; update); // 空迴圈,加註釋
foreach (object obj in array) { statements; }
while (condition) { statements; }
while (condition); // 空迴圈
do { statements; } while (condition);
switch (condition) {
case 1: statements; break;
case 2: statements; break;
default: statements; break;
}
break; 結束。