Pergunta de entrevista da empresa GEICO

How would you programmatically go about determining if a number is even or odd?