in reply to Match all Odd and Even Numbers

Take a look into the modulus operator and that should start you on the right track.
HTH

_________
broquaint