title: Code to print all the lines that have more than 5 characters
body: <p>I'm trying to write code which is supposed to print all lines which have more then 5 characters, and I don't know where the problem is in my code.  Can you help?</p>
  
  <pre><code>#include &lt;stdio.h&gt;
  
  int main()
  {
    int i, s, n ;
    char c, t[100];
    n=0;
    puts("start taping lines");
     while(c=getchar()!=EOF)
     {
     s=0;
  
     while(c!='/n')
     {
  
      ++s;
      }
      if (s&gt;=5){
      t[n]=c ;
      ++n;
      }
     }
  
            puts("lines &gt;80 char =/n");
             for(i=0;i&lt;=n;++i)
             {
                 printf("%s /n",t[i]);
             }
    return 0;
  }
  </code></pre>