title: Print only letters from a string
body: <p>I must create a program that takes in a string and only prints out the letters (the uppercase and lowercase). I really need some help in working this program out.</p>
  
  <p>for example:</p>
  
  <p>Input: Cat808her_+in_+e87</p>
  
  <p>output: Catherine</p>
  
  <p>Input: 2012 Nov 06_ENEE140$$$exa !m </p>
  
  <p>output: NovENEEexam</p>
  
  <pre><code>#include &lt;stdio.h&gt;
  
  char string[256];
  int character;
  int c=0;
  
  int main(){
      printf("Enter a string: ");
      while((character=getchar()) != '\n'){
          if((character&gt;='A'&amp;&amp;character&lt;='Z')||(character&gt;='a'&amp;&amp;character&lt;='z')){
              c++;
              string[c]=character;
          }
          printf("Only letters: %s\n", string);
      }
      return 0;
  }
  </code></pre>