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


int c = 1;

void fenjie(int a, int k)
{
	if (a == 1) 
	{
		c++;
		return;
	}
	for (int i = k; i <= a; i++)
	{
		if (a % i == 0)
		{
			fenjie(a / i, i);
		}
	}
}

int main()
{
	int n, a;
	cin >> n;
	while (n--)
	{
		c = 0;
		cin >> a;
		fenjie(a, 2);
		cout << c << endl;
	}
	return 0;
}

1

int yinshu(int be,int by)//??????? 
{
    int i,sum=0;
    for(i=by;i*i<=be;i++)
    {
                       if(be%i==0)
                       {
                                  sum=sum+1+yinshu(be/i,i);
                       }//be?i?????????????????be/i 
    } 
    return sum;
} 
int main()
{
    int n;
    cin>>n;//?? 
    while(n--)//??? 
    {
                    int num,sign;//sign?????? 
                    cin>>num;
                    for(int j=num;j>1;j--)
                    {
                            if(num%j==0)
                            sign=j;
                    }//?????? 
                    cout<<yinshu(num,sign)+1<<endl;//???? 
    }
    return 0;
}



2

/*
 * ????.cpp
 *  Created on: 2012-11-19
 *  Author:???
 */
int f(int a,int b){//?a???????b?????????
	int num=1,i;
	for(i=b;i<=sqrt(a);i++){//??b?a???????????a?
		if(a%i==0)num+=f(a/i,i);//????a??????????a??????????i??????
	}
	return num;//????
}
int main(){
	int i,n,a;
	cin>>n;//???????
	for(i=1;i<=n;i++){
		cin>>a;
		cout<<f(a,2)<<endl;//???????
	}
	return 0;
}


2