Reviewing for loops with user input