We all use for, do while, while and other forms of loop, but do we really understand them?
Loop is a structure, series, or process, the end of which is connected to the beginning.
This means that when a loop comes to an end, it goes back to the beginning. In short, it repeats a process over and over again based on given conditions.
- Day and Night
- Sleeping and Waking
A loop can be finite if it ends without external interruption, that is, it is self-terminable or has known end.
E.g Living as a human being.
A loop can be infinite if it ends only with external interruption. It is not self-terminable.
E.g Human Existence.
Things that use loop are all around. We all loop things everyday. As you put spoon in your mouth repetitively, you make use of loop.
What are the things that use loop around you?
follow me on twitter: codingnninja;