for loop with starting and ending number selected by user