This task is to find the number of 'For' loops present in the given cpp program.
--------
Question: int sum=0;
void f(int n,int i)
{
    if(n==1) sum++;
    while(i<=n)
    {
        if(n%i==0) f(n/i,i);
        i++;
    }
    return ;
}
int main()
{

    int t=0;
    cin>>t;
    while(t--)
    {
        int n=0;
        cin>>n;
        int i=2,result=1;

       for (i=2;i<=n/2;i++) {
            if(n%i==0)
            {
                sum=0;
                f(n/i,i);
                result=result+sum;
            }

        }
        cout<<result<<endl;
    }
    return 0;
}


Answer: 1


Question: /*
 * ????1118-4.cpp
 * ?????
 * ????: 2011-11-29
 * ??????????a?????????????????a = a1 * a2 * a3 * ... * an???1 < a1 <= a2 <= a3 <= ... <= an?????????????
 */
int divide(int n,int a)//n?????????a????????????????????
{
	int s=0,i;
	if(n==1) return 1;//n?1???
	for(i=a;i>1;i--)
		if(n%i==0)
			s+=divide(n/i,i);//???????
	return s;//??0??????????0??????????
}
int main()
{
	int n,k;
	cin>>k;//??????
	while(k>0)//???????
	{
		cin>>n;//????????
		cout<<divide(n,n)<<endl;//??????
		k--;//?????????
	}
	return 0;//????
}


Answer: 1


Question: 


int factoring(int a,int b)
{
    int i,kind=0;

		//printf("ok  a=%d  b=%d\n",a,b);

	if(a==1)
	{
	    kind=1;
			//printf("kind=1   ok\n");
	}

	else
	{
	    for(i=b;i<=a;i++)
		{
		//	printf("ok\n");

		    if(a%i==0)
			{
	            kind=factoring(a/i,i)+kind;
					//printf("ok  %d\n",kind);
			}
		}
	}


	return kind;
}

int main()
{
   int n,x[40000],i;
   scanf("%d",&n);
  
   for(i=0;i<n;i++)
   {
      scanf("%d",&x[i]);

   }

   for(i=0;i<n;i++)
   {
       x[i]=factoring(x[i],2);
	   printf("%d\n",x[i]);

   }
   return 0;

}

Answer:
3