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

[EX Q]: /*
 * fenjieyinshi1.cpp
 *???????
 *  Created on: 2011-12-1
 *??:???
 */
int remember=0;//???????????0
int number(int const1,int a)//?????
{
	if(a==1)//??????1??????????????
	{
		remember++;//
		return 1;//??=1
	}
	else
	{
	for(int i=const1;i<=a;i++)//????1??????????
	{
		if(a%i==0)//??????????
		number(i,a/i);//?????????
	}
	}
}
int main()
{
	int n;
	cin>>n;//?????????
	int cases[n];//??????????
	for(int j=0;j<n;j++)
		cin>>cases[j];//???????
	for(int j=0;j<n;j++)
	{
		number(2,cases[j]);//????
		cout<<remember<<endl;//????
		remember=0;//?????????
	}
	return 0;
}
[EX A]: 3

[EX Q]: int sum=0,t;          //sum?????????,t??????
void dg(int s)        //?s????
{
	for(int i=s;i<=t;i++)
	{
		if(t%i==0)   //?i??t??
		{
			t=t/i;
			if(t==1) sum++;   //t????,??+1
			else dg(i);       //??????
			t=t*i;
		}
	}
}
int main()
{
	int n;
	cin>>n;
	while(n--)       //??n?
	{
		cin>>t;
		dg(2);
		cout<<sum<<endl;
		sum=0;
	}
	return 0;
}
[EX A]: 1

[EX Q]: //**********************************************
//**???1090 ????*************************
//**?????? 1000012741*********************
//**???2010?12?7?*************************
//**********************************************
//??change???a???????p???????
int change (int a, int p)      
{
	int i, count = 0;                             //count??????????
	for (i = p; i < a; i++)
	{
		if (a % i == 0 && a / i >= i)             //??????????????
		{
			count++;                              //???1
			int k, t;
			k = (int) sqrt(a / i);                //?k?a/i????
			for (t = 2; t <= k; t++)
			{
				if ((a / i) % t == 0)             //??a???2?k??????
				{
					count += change (a / i, i);   //?a/i??????
					break;
				}   
			}  
				
		}
	}
	return count;                                 //??count?
}
int main()
{
	int n, i, a;                                  //n?????????a?????
	cin >> n;
	for (i = 1; i <= n; i++)
	{
		int total = 0;                            //total?????
		cin >> a;
		total += change (a, 2);                   //??change??
		cout << total + 1 << endl;                //??1?????????????
	}
	return 0;
}
//**********************************************
[EX A]:
3

