Answer to Question stdio-out-3

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