A few questions:
1. Why have you initialized your counter to outX + 0? Why not just 0?
2. I don't know if it would be part of your requirements, but in a real-life situation, you would want to varify that the user did in fact give you a number > 0. Just because you tell a user to do something, doesn't mean they actually will.
3. Why are you decrementing x in your loop? If you subtract x by 1 and add outX by 1, you are technically advancing the counter by 2 since you do an equals check with outX and x (and, if x is odd, you will pass right by the value since they will never equal each other).