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 loops are loops but you can only go through it a certain amount of times, while while loops are infinite and you can go through the loops as many times as you need to.
for(float i=0;i<l;i++)
you need a starting points, an ending point and the equation that adds or subtracts
No comments:
Post a Comment