Question d’entretien chez EY

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