Answer to Question 06B-3

  void writeSpaces(int n)
  {
    printf("%*c", n, ' ');
  }