Tip - for loop

Something that helped me better understand for loops was when someone formatted the white space to read like what we been doing.

so if your having trouble following along and it all just looks like algebra homework and your starting to glaze over. You can change the white space to make it a little more manageable to read.

for
(
int i = 0;
i <5;
i++; or i += 1; or i = i+1;
)
{
some code
}

Sometimes it just helps to spread it out.

Privacy & Terms