title: Console doesnt display histogram
body: <p>I ran the following code, but nothing came up on the console....</p>
  
  <pre><code>#include &lt;stdio.h&gt;
  
  #define MAXWORDLEN 10
  
  int main(void)
  {
    int c;
    int inspace = 0;
    long lengtharr[MAXWORDLEN + 1];
    int wordlen = 0;
  
    int firstletter = 1;
    long thisval = 0;
    long maxval = 0;
    int thisidx = 0;
    int done = 0;
  
    for(thisidx = 0; thisidx &lt;= MAXWORDLEN; thisidx++)
    {
      lengtharr[thisidx] = 0;
    }
  
    while(done == 0)
    {
      c = getchar();
  
      if(c == ' ' || c == '\t' || c == '\n' || c == EOF)
      {
        if(inspace == 0)
        {
          firstletter = 0;
          inspace = 1;
  
          if(wordlen &lt;= MAXWORDLEN)
          {
            if(wordlen &gt; 0)
            {
              thisval = ++lengtharr[wordlen - 1];
              if(thisval &gt; maxval)
              {
                maxval = thisval;
              }
            }
          }
          else
          {
            thisval = ++lengtharr[MAXWORDLEN];
            if(thisval &gt; maxval)
            {
              maxval = thisval;
            }
          }
        }
        if(c == EOF)
        {
          done = 1;
        }
      }
      else
      {
        if(inspace == 1 || firstletter == 1)
        {
          wordlen = 0;
          firstletter = 0;
          inspace = 0;
        }
        ++wordlen;
      }
    }
  
    for(thisval = maxval; thisval &gt; 0; thisval--)
    {
      printf("%4d  | ", thisval);
      for(thisidx = 0; thisidx &lt;= MAXWORDLEN; thisidx++)
      {
        if(lengtharr[thisidx] &gt;= thisval)
        {
          printf("*  ");
        }
        else
        {
          printf("   ");
        }
      }
      printf("\n");
    }
    printf("      +");
    for(thisidx = 0; thisidx &lt;= MAXWORDLEN; thisidx++)
    {
      printf("---");
    }
    printf("\n       ");
    for(thisidx = 0; thisidx &lt; MAXWORDLEN; thisidx++)
    {
      printf("%2d ", thisidx + 1);
    }
    printf("&gt;%d\n", MAXWORDLEN);
  
    return 0;
  }
  </code></pre>