i cahnged it around alot. Generally, if you have better format, the code is easier to understand. I was thinking about it, and what if you want to let the user enter a negative number? why dont you make a character array, and have one character that you enter to exit the loop?