//
// Program to test "is_even" function.
//

#include <iostream.h>
#include <stdlib.h>

// "is_even" function.
// Post:  Prints "yes" if a is even, "no" otherwise.
void is_even(int a)
{
  if (a%2 == 0)
    cout << "yes";
  else
    cout << "no";
  return;
}

int main(void)
{
  int a;
  cout << "Enter an integer:\n";
  cin >> a;
  cout << "Is " << a << " even?  ";
  is_even(a);
  cout << endl;
  return EXIT_SUCCESS;
}