posted 14 years ago
Welcome to JavaRanch!
Looking at your code, it actually prints numbers from 0 to 100, not from 1 to 100, because count starts at 0 in line 11. I'd advise you to use proper indentation, or better yet, surround the statement that's supposed to be in the loop in braces, because the way it looks now is very confusing:
Write it like this:
One way to avoid printing the 100 afterwards is like this: