This task is to find the number of 'For' loops present in the given cpp program.
--------
Question: int fenjie(int n,int min)
{int i,a=0,x=0;
for(i=2;i<=n;i++)
if(n%i==0)
a=a+1;
if(n==1)
return 1;
else
{
for(i=min;i<=n;i++)
{
if(n%i==0)
x=x+fenjie(n/i,i);
}
return x;
}
}
main()
{
int t,j,num;
scanf("%d",&t);
for(j=1;j<=t;j++)
{
scanf("%d",&num);
printf("%d
",fenjie(num,2));}
}

Answer: 3

Question:
int c = 1;

void fenjie(int a, int k)
{
if (a == 1)
{
c++;
return;
}
for (int i = k; i <= a; i++)
{
if (a % i == 0)
{
fenjie(a / i, i);
}
}
}

int main()
{
int n, a;
cin >> n;
while (n--)
{
c = 0;
cin >> a;
fenjie(a, 2);
cout << c << endl;
}
return 0;
}

Answer: 1

Question: int fun(int x,int y)
{
int i,sum=0;
for(i=x;i*i<=y;i++)
if(y%i==0) {sum++;sum+=fun(i,y/i);}
return sum;
}
int main()
{
int n,i,sum;
scanf("%d",&n);
while(n>0)
{ n--;
scanf("%d",&i);sum=1;
sum+=fun(2,i);
printf("%d
",sum);
}
return 0;
}

Answer:
1