code to check even/odd of a number