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: 
int t=0;
int mini(int k,int i)//a?&#710;&#160;&#733;o?÷÷?÷?&#174;?¨?&#8250;?è&#8482;&#171;&#219;k?&#219;&#8260;i
{
	if(k==1)t=t+1;
	for(;i<=k;i++)
	{
		if(k%i==0)mini(k/i,i);
	}
	return 0;
}
	
int main()
{
	int N,n;
	scanf("%d",&N);
	for(n=0;n<=N-1;n++)
	{
		int M;
		scanf("%d",&M);
		mini(M,2);
		printf("%d\n",t);
		t=0;
	}
}


A: 2
****
Q: //********************************
//*???? 
//********************************


int f(int a, int b)
{
	if (a == 1)
		return 1;
	else
	{
		int c,d,i;
		c = 0;
		d = (int)sqrt((double)a);
		for (i = b; i <= a; i ++)
		{
			if (!(a % i))
				c+= f(a / i,i);
		}
		return c;
	}
}

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


A:
2
****