title: K&R Exercise 1-9 (C)
body: <blockquote>
    <p>"Write a program to copy its input to
    its output, replacing each string of
    one or more blanks by a single blank."</p>
  </blockquote>
  
  <p>I'm assuming by this he means input something like...</p>
  
  <blockquote>
    <p><strong>We</strong>(blank)(blank)(blank)<strong>go</strong>(blank)<strong>to</strong>(blank)(blank)(blank)<strong>the</strong>(blank)<strong>mall!</strong></p>
  </blockquote>
  
  <p>... and output it like:</p>
  
  <blockquote>
    <p><strong>We</strong>(blank)<strong>go</strong>(blank)<strong>to</strong>(blank)<strong>the</strong>(blank)<strong>mall!</strong></p>
  </blockquote>
  
  <p>This is probably easier than I'm making it out to be, but still, I can't seem to figure it out. I don't really want the code... more so <em>pseudo code</em>.</p>
  
  <p>Also, how should I be looking at this? I'm pretty sure whatever program I write is going to need at least one <code>variable</code>, a <code>while</code> loop, a couple <code>if</code> statements, and will use both the <code>getchar()</code> and <code>putchar()</code> functions... but besides that I'm at a loss. I don't really have a programmers train of thought yet, so if you could give me some advice as to how I should be looking at "problems" in general that'd be awesome.</p>
  
  <p>(And please don't bring up <code>else</code>, I haven't got that far in the book so right now that's out of my scope.)</p>