For loops
A for
statement is a concise way to write the initialization, condition, and increment of a looping statement.
Notice that we can write the equivalent for
loop and while
loop below.
A for
statement is a concise way to write the initialization, condition, and increment of a looping statement.
Notice that we can write the equivalent for
loop and while
loop below.