HSBC interview question

Write a programme to determine whether an inputted integer is even or not.