This task is to find the number of 'For' loops present in the given cpp program.
--------
Question: int fun(int m,int n)
{
int i,sum=1;
if(n==1)
{
for(i=2;i*i<=m;i++)
{
if(m%i==0)
sum+=fun(m/i,i);
}
}
else
for(i=n;i*i<=m;i++)
{
if(m%i==0)
{
sum+=fun(m/i,i);
}
}
return sum;
}
int main()
{
int n,i,b;
int a[1000];
cin>>n;
for(i=0;i<n;i++)
{
cin>>b;
a[i]=fun(b,1);
}
for(i=0;i<n;i++)
cout<<a[i]<<endl;
}

Answer: 4

Question: int m[100],i;
void sb(int,int);
int main()
{
int n,a[100];
scanf("%d",&n);
for(i=0;i<n;i++)
scanf("%d",&a[i]);
for(i=0;i<n;i++)
{
sb(a[i],2);
printf("%d
",m[i]+1);
}
return 0;
}
void sb(int c,int d)
{
int v;
for(v=d;v<=sqrt(c);v++)
{
if(c%v==0)
{
m[i]++;
sb(c/v,v);}}
}

Answer: 3

Question:
int f(int a,int min)//???a???????min?????????
{
int i;
if(a < min)//??????
{
return 0;
}
int result = 1;
for(int i = min;i<a;i++)//??????
{
if(a % i == 0)
{
result += f(a/i,i);
}
}
return result;
}
int main()
{
int n,a;//????
cin>>n;
while(cin>>a)//????
{
cout<<f(a,2)<<endl;//????
}
return 0;
}

Answer:
1