This task is to find the number of 'For' loops present in the given cpp program.

int f(int x,int y)
{
	if(y==x)
		return 1; 
	if(y>x)
		return 0;
	if(x%y==0)
		return f(x,y+1)+f(x/y,y);
	else
		return f(x,y+1);
}
int main()
{
	int n,x;
	cin>>n;
	int z,i;
	i=n;
	while(i>0)
	{
		i=i-1;
		cin>>x;
		z=f(x,2);
		cout<<z<<endl;
	}
	return 0;
}


0

/*????
 * divide.cpp
 *
 *  Created on: 2011-12-1
 *      Author: WJ
 */

int sum=1;                            //?????1?????
void f(int b,int a)                        //??????????????
{
	for(int i=b;i<=a;i++){           //????????
	if((a%i==0)&&(i<=a/i)){
		sum=sum+1;                   //???1
		f(i,a/i);                         //???????????
	}
	if(i>a/i)  break;
	}
}
int main()
{
	int a,n;
	cin>>n;
	while(n>0){                //??????
		cin>>a;
		sum=1;
		f(2,a);                  //????
		cout<<sum<<endl;         //????
		n--;
	}
	return 0;
}

1

int m[100],i;
void sb(int,int);
int main()
{
	int n,a[100];
 scanf("%d",&n);
 for(i=0;i<n;i++)
	 scanf("%d",&a[i]);   
 for(i=0;i<n;i++)
 {   
	 sb(a[i],2);
  printf("%d\n",m[i]+1);
 }
  return 0;
}
void sb(int c,int d)
{
	 int v; 
	 for(v=d;v<=sqrt(c);v++)
	 {
		 if(c%v==0)
		 {
			 m[i]++;  
             sb(c/v,v);}}
}	  
        




3