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

Ex Input:
/*
 * huisu.cpp
 *   ????
 *  Created on: 2010-11-26
 *      Author: ???
 */

int a=0,i=0,sum=1;                          //sum?????????????????????????1
void f(int i,int a) {                       //f????????
	int j;
	for(j=i;j<=sqrt(a);j++)
		if(a%j==0) {sum++; f(j,a/j);}        //?a??j?????????1????????????,????
}                                            //???j??????????????3*13?13*3
int main(){
	int n;
	cin>>n;
	while (n){
		cin>>a;
		f(2,a);
		cout<<sum<<endl;
		n--;
		sum=1;       //??sum
	}
}


Ex Output:
1


Ex Input:
int fenjie(int a,int b)
{
	int i,sign=0,k=0;
	if(a<b) return 0;
	else if(a==b) return 1;
	else
	{
		for(i=2;i<=a-1;i++)
		{
			if(a%i==0)
				sign=1;
		}
		if(sign!=1) return 1;
		else 
		{
			for(i=b;i<=a;i++)
			{
				if(a%i==0)
					k+=fenjie(a/i,i);
			}
			k+=1;
			return k;
		}
	}
}

	
int main()
{ 
	int n,a[100],i,k;
	scanf("%d",&n);

	for(i=1;i<=n;i++)
	{

		scanf("%d",&k);
		printf("%d\n",fenjie(k,2));
	}
	return 0;
}


Ex Output:
3


Ex Input:
int ge,s,w;//ge??????????? 
void fen(int h,int a);//fen???s?????????? 
int main()
{
    int n=0,k=0;//n????????   k?????????  s????????????? 
    cin>>n;
    for(k=1;k<=n;k++)
    {
       cin>>s;
       ge=0;
       fen(s,2);
       cout<<ge<<endl;                 
    }
return 0;    
}
void fen(int h,int a)
{
    for(int i=2;i<=h;i++)
    {
        if((h%i==0)&&(i>=a))
        {
            if(h/i!=1)
            {fen(h/i,i);}
            else
            {ge++;}           
        }
    }     
}


Ex Output:

2