Pergunta de entrevista da empresa EY

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