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

Input: Consider Input: int ans = 0;
void work(int p,int k)
{
	if(p == 1){
		ans ++;
		return ;
	}
	for(int i =k;i <= p;i ++){
		if(p % i == 0){
			work(p / i,i);
		}
	}
}
int main()
{
	int n;
	scanf("%d",&n);
	while(n--){
		ans = 0;
		int t;
		scanf("%d",&t);
		work(t,2);
		//ans = work(t);
		printf("%d\n",ans);
	}
	return 0;
}

Output: 1


Input: Consider Input: /**
* @file		????.cpp
* @author	??	1000012792
* @date		2010.12.3
*/

int f(int n, int m);				//??f:????m????n?????????????????
int main()
{
	int n, num, i;
	cin >> n;						//n???n???
	for(i=0;i<n;i++)
	{
		cin >> num;					//????????num,????????
		cout << f(num, 2) << endl;
	}
	return 0;
}
int f(int n, int m)
{
	int i, count=0;
	if(n==1)
		return 1;					//??n=1?????????1
	for(i=m;i<=n;i++)				//?????i?m?????n??
	{
		if(n%i==0)					//??n??i???????n/i????(???????i)???????f(n/i,i)
			count += f(n/i,i);		//count?????????
	}
	return count;					//??count??
}

Output: 2


Input: Consider Input: int Digui(int a,int min)
{
	int i,result=1;
	if(a<min)
	{
		return 0;
	}
	for(i=min;i<a;i++)
	{
		if(a%i==0)
		{
			result+=Digui(a/i,i);
		}
	}
	return(result);
}
int main()
{
	int a[1000],n,i;
	scanf("%d",&n);
	for(i=0;i<n;i++)
	{
		scanf("%d",&a[i]);
	}
	for(i=0;i<n;i++)
	{
		printf("%d\n",Digui(a[i],2));
	}
	return 0;
}





Output: 3