Hi guys,
Syntax
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)
Parameters
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).
src
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.
Nice to read your post .
Keep posting and stay with our community
Thank you
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
thanks @sandysparkle 👍
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
You have been upvoted by @tarpan A Country Representative, we are voting with the Steemit Community Curator @steemcurator07 account to support the newcomers coming into steemit.
Follow @steemitblog for the latest update. You can also check out this link which provides the name of the existing community according to specialized subject
For general information about what is happening on Steem follow @steemitblog.
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
thank you very much
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit