Examples of for and while loop