Answer to Question 6C-1

  // readInt() reads an integer and returns it.

  int readInt()
  {
    int n;
    scanf("%i", &n);
    return n;
  }