title: Removing non alphabetic characters in a char array
body: <p>I want to remove/replace non alphabetic characters in a char array but instead of removing it, it replaces it with a space. 
  For an example if I type in hello123hello it would ouput as hello   hello.
  I want it to output it as hellohello without the extra spaces.</p>
  
  <pre><code>#include &lt;stdio.h&gt;
  #include &lt;ctype.h&gt;
  #include &lt;string.h&gt;
  
  int main()
  {
      char input[80];
      char output[80];
  
      printf("&gt; ");
      scanf("%s", &amp;input);
  
      int i = 0;
  
      while (i &lt; sizeof(input))
      { 
          if (input[i] != '\0' &amp;&amp; input[i] &lt; 'A' || input[i] &gt; 'z')
            input[i] = ' ';
          {
              i++;
          }
      }
  
      printf("= %s\n", input);
  
      return 0;
  }
  </code></pre>