Example #1 (loop counting): ----------------------------------------- Suppose we have the snippet of code: for (int i=1 ; i<=N ; i*=2) for (int j=0 ; j