What are for loops and when would you decide to use them in code (instead of while loops)? Describe the three parts that make a for loop “run” and how they work.
for-loop is a programming language control statement for specifying iteration, which allows code to be executed repeatedly.The three parts of loop is the start point,end point,and number.They tell you when to start, end and what number to count by.
No comments:
Post a Comment