Pregunta de entrevista de Tata Consultancy Services

Write a basic code for knowing an input number is even or odd.