Looping
Looping was pretty self-explanatory and very similar to what we did in bash. So we did for loops, now if we remember and for loop runs from the start to finish of a loop. But we also did a while loop, which continues to execute as long as something is true. Now I got a little ahead of myself and I am going to show you and then I will post the finished correct loop.
This is a pretty simple one where it printed the name of the veggies.
And this is the correct way, this ended with it printing 1,2,3,4,...
Comments
Post a Comment