For and while loop