Tag while loop vs for loop