That is, first,
expr1
is evaluated. Then the condition is checked. If it is true, then the loop enters
into the body (after the { brace) and executes the statements within it. After one iteration is over,
control goes back to
expr2
and then again the
boolExpr
condition is checked. This is the process by
which a for loop works.
Do'stlaringiz bilan baham: