check even odd without using if- else