0

I'm trying to create a piece of C++ code which will only allow a user to enter odd numbers.

If an even number is entered, the program must tell the user to enter only an odd number.

Im comfortable with the whole output bit in the 2nd line above, but i have no idea where to start with regards to analysing the number!

Any help would be greatfully received!!