title: how to calculate total no of iteration of innermost loop of nested for loop? is there any formula?
body: <p>for example </p>
  
  <pre><code>int count=0
  for(int i=0;i&lt;12;i++)
     for(int j=i+1;j&lt;10;j++)
         for(int k=j+1;k&lt;8;k++)
             count++;
  System.out.println("count = "+count);
  </code></pre>
  
  <p>or </p>
  
  <pre><code>for(int i=0;i&lt;I;i++)
     for(int j=i+1;j&lt;J;j++)
         for(int k=j+1;k&lt;K;k++)
          :       
          :
          :
          for(int z=y+1;z,&lt;Z;z,++,)
           count++;
  </code></pre>
  
  <p>what is value of count after all iteration? Is there any formula to calculate it?</p>