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

[EX Q]: int f(int i,int t)
{
	if(i<t)
	{return 0;}
	int b=1;
	int a;
	for(a=t;a<i;a++)
	{
		if(i%a==0)
		{b=b+f(i/a,a);}
	}
	return b;
}

int main()
{
	int n;
	scanf("%d",&n);
	int i=0;
	int d[100];
	do
	{
		scanf("%d",&d[i]);
		i++;
	}while(i<n);
	i=0;
	do
	{
		printf("%d\n",f(d[i],2));
		i++;
	}while(i<n);
	return 0;
}
[EX A]: 1

[EX Q]: int p(int x)
{
     int i;
     for(i=2;i<=sqrt(x);i++) if(x%i==0) return(0);
     return(1);
}
int f(int n,int m)
{
     int t,i;
     if(n<m) return(0);
     else if(p(n)==1) return(1);
     else if(m==1)
     {
          t=1;
          for(i=m+1;i<n;i++)
          {
               if(n%i==0) t=t+f(n/i,i);
          }
     }
     else if(m!=1)
     {
          t=1;
          for(i=m;i<n;i++)
          {
               if(n%i==0) t=t+f(n/i,i);
          }
     }
     return(t);
}    
main ()
{
     int x,y,z,j;
     scanf("%d",&y);
     for(j=0;j<y;j++)
     {
           scanf("%d",&x);
           printf("%d\n",f(x,1));
     }
    
}
[EX A]: 4

[EX Q]: /*
 * 1090 ????.cpp
 *
 *  Created on: 2010-11-26
 *      Author: ???
 */
int f(int a,int min)               //???a???????min??????
{
	int j,num;                     //j????num????
	if (a<min) return 0;           //??a??min?????????????
	num=1;                         //???????
	for (j=min;j<a;j++)            //????????
		if (a%j==0) num=num+f(a/j,j);           //???????????
	return num;                    //????
}

int main()
{
	int n,i,out,a;                //n???????out???????a??????
	cin>>n;
	for (i=0;i<n;i++)
	{
		cin>>a;
		out=f(a,2);               //??????
		cout<<out<<endl;
	}
	return 0;
}
[EX A]:
2