title: Why wont this print any output? (c programming language)
body: <p>Not sure why nothing is coming out, compiler finds no errors, it just runs and terminates a few seconds later, no output.</p>
  
  <p>I'll give the source code and the input file's text.</p>
  
  <p>Source code:
  letterArray.c</p>
  
  <pre><code>#include &lt;stdio.h&gt;
  
  /* displays a histogram of the frequencies 
  of letters in input */
  main()
  {
      int c, i, nwhite, nother;
      int nletter[26];
  
      nwhite = nother = 0;
      for (i = 0; i &lt; 26; ++i)
          nletter[i] = 0;
  
      while ((c = getchar()) != EOF)
          if (c == 'a' || c == 'b' || c == 
  'c' || c == 'd' || c == 'e' || c == 'f' || 
  c == 'g' || c == 'h' || c == 'i' || c == 
  'j' || c == 'k' || c == 'l' || c == 'm' || 
  c == 'n' || c == 'o' || c == 'p' || c == 
  'q' || c == 'r' || c == 's' || c == 't' || 
  c == 'u' || c == 'v' || c == 'w' || c == 
  'x' || c == 'y' || c == 'z')
              ++nletter[c];
          else if (c == ' ' || c == '\n' || c 
  == '\t')
              ++nwhite;
          else 
              ++nother;
  
          printf("Letter: a b c d e f g h i j 
  k l m n o p q r s t u v w x y z 
  \nOccurences:");        
          for (i = 0; i &lt; 26; ++i)
              printf(" %d", nletter[i]);
          printf("\nwhite space = %d, other = 
  %d\n", nwhite, nother);
  }
  </code></pre>
  
  <p>Text input: input.txt</p>
  
  <pre><code>    abcdefg hijklmnop qrstuv wxyzz
  </code></pre>
  
  <p>I'm pretty new to c, and to programming in general. Any help would be appreciated.</p>