Pregunta de entrevista de EY

Write a program to check whether a number is even or odd.