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

Ex Input:
//n???????i?????????
int divi(int n,int i)
{
    int num=0;
    if(n%i==0)
    {
        if(n==i)      //?????????????????1 
        {
            return 1;
        }
        for(int j=2;j<=i;j++)
        {
             num=num+divi(n/i,j);   //?? 
        }
           return num;
    }
        
    else
    {
        return 0;
    }               
}

int main()
{
    int n=0;  //????? 
    int t=0;  //???? 
    int sum;  //????? 
    cin>>t;  
    for(int i=0;i<t;i++)
    {
        sum=0;
        cin>>n;
        for(int j=2;j<=n/2;j++)   //?????????1*n??? 
        {
            sum=sum+divi(n,j);
        }
        cout<<sum+1<<endl;
    }
    return 0;
}


Ex Output:
3


Ex Input:
/*
 * ???? .cpp
 *
 *  Created on: 2012-11-27
 *      Author:??
 *      ???????a?????????????????a = a1 * a2 * a3 * ... * an?
 *      ??1 < a1 <= a2 <= a3 <= ... <= an?????????????????a = a???????
 */

int answer = 0;//???????
void f(int n, int N) {
	if (n < N)
		N = n;//????????????
	if (N == 1) {
		answer++;//??????
		return;
	}
	while (N > 1) {
		if (n % N == 0)
			f(n / N, N);//?????,?????
		N--;//??????
	}
}

int main()
{
	int n , a ;
	cin >>  n ;        //????n
	for ( int i = 0 ; i < n ; i++ )
	{
		cin >> a ;
		f( a , a ) ;              //????
		cout << answer << endl ;
		answer = 0 ;                   //????
	}
	return 0 ;
}


Ex Output:
1


Ex Input:
int main()
{
	int f(int x,int y);
	int n,i;
	int a[100];
	scanf("%d",&n);
	for(i=0;i<n;i++)
	{
		scanf("%d",&a[i]);
		printf("%d\n",f(a[i],2));
	}
	scanf("%d",&i);
	return 0;
}
int f(int x,int y)
{
	int s,j,k,l,m,n;
	if(x==1) s=1;
	else if(y>x) s=0;
	else {
		for(l=1;l<=x;l++)
		{
			k=0;
			if(x%l==0) k=k+1;
		}
		if(k==2) s=1;
	else 
	{
		s=0;
		for(j=y;j<=x;j++)
		{
		
			if(x%j==0){ s=s+f(x/j,j);}
		}
		
	}
	}
		return s;
}

Ex Output:

3


