how to input unspecified number if ints with a scanner

i have to get input using the scanner class which is no big deal but it has to read an unspecified number of digits and am not sure how to do that and haven't had any luck finding out how.... this program runs on a loop and i dont think my problem is the loop maybe the input scanner? here is what i have and it is just my first draft....

You will have a problem when you execute the loop in your program.The variable that controls the looping is not changed in the loop. It will loop forever.
You need to change the variable's value inside the loop, probably by reading in a new number from the user.