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

Q: 
int count;

void fun(int i, int j)
{
	int k;
	for(k=i; k<=sqrt(j); k++) {
		if(j%k == 0) {
			count++;
			fun(k,j/k);
		}
	}
}
int main()
{
     int N,turn,c;
      scanf("%d",&turn);
      for(c=1;c<=turn;c++)
      {
	int n,i;
	scanf("%d",&n);
	for(i=2; i<=sqrt(n); i++) {
		if(n%i == 0) {
			count++;
			fun(i,n/i);
		}
	}
	printf("%d\n",count+1);
	count=0;
}

}


A: 3
****
Q: 
int s(int a,int b)
{  int sum=0,z=0;
	if(a!=1&&b<=a)
	{
	  for(int i=b;i<=a;++i)
   {
	   if(a%i==0)
	   {
		   sum+=s(a/i,i);z=1;
	   }
   }
	 
	}
	else if(a==1)
		return 1;

	return sum;

}
int main()
{  
	int n,a;
	cin>>n;
	for(int i=0;i<n;++i)
	{   
		cin>>a;
		cout<<s(a,2)<<endl;
	}
	return 0;
}



A: 2
****
Q: //*************************************
//* ????1.cpp *
//* ??????1200012844 *
//* ?????2012?11?28? *
//* ????????? *
//**************************************
int factor(int, int);
int main()
{
	int n, i, a;
	cin >> n;//n???
	for ( i = 0; i < n; i ++ )
	{
		cin >> a;//?????
		cout << factor(a, 2) << endl;//??????
	}
	return 0;
}

int factor(int a, int b)
{
	int c, i;
	int num = 1;//???????
	if (a == 1)
		return 0;
	c = sqrt(a);
	for ( i = b; i <= c; i++ )//?2??????????????????
		if ( a % i == 0 )//??????i?????
			num += factor(a / i, i);
	return num;
}

A:
2
****