for loop exercise using incrementer of 1 if no input is made