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

[Q]: 
/**
* @author ??
* @date 2010-12-1
* @description
* ??????:???? 
*/
int sum;
void calculate(int, int);


int main()
{
	int n;
	cin >> n;
	for (int i = 0; i < n;i++)
	{
		int m;
		sum  = 1;
		cin >> m;
		calculate(m, 2);
		cout << sum << endl;
	}
	return 0;
}
void calculate(int m,int begin)
{
	int i;
	int n = sqrt((double)m);
	for ( i = begin; i <= n; i++ )
	{
		if ( m % i == 0)
		{
			sum++;
			calculate(m / i,i);
		}
	}
}
[A]: 2


[Q]: /*
 * 187.cpp
 *
 *  Created on: 2011-11-22
 *      Author: think
 */
int count(int a,int n){
	if(a>n)return 0;
	if(a==n)return 1;
	int p=1;
	int i;
	for(i=a;i<=n;i++){
		if(n%i==0&&i<=n/i){
			p=p+count(i,n/i);
		}
	}
	return p;
}
int geshu(int N){
	int i;
	int s=1;
	for(i=2;i<=sqrt(N);i++){
		if(N%i==0){
			s=s+count(i,N/i);
		}
	}

	return s;
}
int main(){
	int N;
	cin>>N;
	int c[N];
	int j;
	for(j=0;j<N;j++){
		cin>>c[j];
	}
	for(j=0;j<N;j++){
		cout<<geshu(c[j])<<endl;
	}
	return 0;
}

[A]: 4


[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;
}
//**********************************************
[A]:
3