Calculate Frequency Count for each statement in the following C code
<p>How do I calculate the frequency count of each statement (i.e. the number of time each statement gets read/executed) in the following C code.<br>
The frequency count of each statement must be written in terms of 'n'. </p>

<pre><code>for(i=1;i&lt;=n;i++)  
     for(j=1;j&lt;=i;j++)  
          for(k=1;k&lt;=j;k++)
                x=x+1;
</code></pre>