in reply to Match all Odd and Even Numbers

++Dru for (a) admitting it's homework, and (b) posting code that you'd already tried. A good example to many...:)

Cheers, Ben.