that threw you into an infinite loop. You only incrimented oddCount if it was odd, so it would just stop incrimenting if it became even. I'll now point out that you are using oddCount to keep track of the odd numbers, which starts at 0, not the number you got from the user. Keep track of that with i instead, which you have set up properly.