while()ControlIterationWeb & Applicationwhile_.gif
int i=0;
while(i<80) {
line(30, i, 80, i);
i = i + 5;
}
Controls a sequence of repetitions. The while structure executes a series of statements continuously while the expression is true. The expression must be updated during the repetitions or the program will never "break out" of while().
while(expression) {
statements
}
a valid expressionone or more statements
for()
1.0StructurePDE