Formatted while loop as for loop