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

[EX Q]: 
int all=1;   //?????????????????????1
void divd(int,int);   //??????????????????????????????

int main()
{
	int n,num;
	cin>>n;
	while(n--)
	{
		cin>>num;
		divd(2,num);   //????2???????
		cout<<all<<endl;
		all=1;
	}
	return 0;
}

void divd(int fac,int num)
{
	int i;
	for(i=fac;i*i<=num;i++)   //???????????????????????????
		if(num%i==0)  //?????????
		{
			fac=i;  //??
			all++;   //????
			divd(fac,num/fac);   //??????????
		}
}
[EX A]: 1

[EX Q]: /*
 * part.cpp
 *
 *  Created on: 2012-11-25
 *      Author: Lsj
 */

int disintegerate(int a, int b)//?????a????
{
	if (a == b || b == 1)//a b????b=1??????
		return 1;
	if (a > b)//a??b?b???1????0???0
		return 0;
	int ans = 0;//ans???
	for (int i = a; i <= b; i++)//?a?b??
	{
		if (b % i == 0)//b??????
			ans = ans + disintegerate(i, b / i);//??????
	}
	return ans;//??ans
}

int main()//main??
{
	int Time;
	cin >> Time;//????
	while (Time > 0) {
		int n;
		cin >> n;//??n
		cout << disintegerate(2, n) << endl;//????
		Time--;//Time?1
	}

	return 0;
}//??

[EX A]: 1

[EX Q]: int main()
{
	int fenjie(int m,int i);
	int n,i,c[100];
	scanf("%d",&n);
	for(i=0;i<n;i++)
		scanf("%d",&c[i]);
	for(i=0;i<n;i++)
		printf("%d\n",fenjie(c[i],2));
	
	
	return 0;
}

int fenjie(int m,int i)
{
 int l = 1,j;
 int t = sqrt((float)m);
 for (j = i; j <= t; ++j)
 {
  if (m % j == 0)
   l += fenjie(m/j, j);
 }
  return l;
}
[EX A]:
3