title: C compilation errors
body: <p>I have to write a program in C which calculates and displays the following expression:</p>
  
  <p><code>P=1*2*(1/3)*4*5*(1/6)</code></p>
  
  <p>I tried running this code ( this is the whole code) but I cant compile it because it shows errors in the fourth and eleventh row in C++..What am I doing wrong?</p>
  
  <pre><code>   #include &lt;stdio.h&gt;
  
      int i,n,f=1;
      for(i=1;i&lt;=n;i++)
      {
          if(i%3==0)
             f=f/i;
          else
             f=f*i;
      }
      printf("%d\n", f);
      return 0;
  </code></pre>
  
  <p>I cant write here the erros because they are soooo many..</p>