"Necessity is the mother of Invention" or " Need is mother of Inveiton".

So u can create varied different ways of using for loop or any other loop.

No. of our frnds explained you various ways...