First I will explain about the syntax of the code, below you can see it. There are there things we have to know before use this code....
for (initialization; condition; increment)
initialization: happens first and exactly one time(once)
condition: each time through the loop(continuously), condition is tested; if it’s correct(true), the statement terminates, and the increment is done, then the condition will be tested again. When the condition becomes incorrect (false), the loop will end.
increment: done each time through the loop when condition is correct(true).
This is a short lesson but it will be very useful to you because for the most of your future projects. I hope you will try this for loop coding with your previous lesson blinking LEDs,then you can realize the difference.. Try it for at least five LEDs from both coding..
Thank You & Stay Safe.