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

[EX Q]: int f(int n,int k){
if(n<k)return 0;
int i,s=1;
for(i=k;i<n;i++){
if(n%i==0)s+=f(n/i,i);
}
return s;
}
int main(){
int m,n,i,ans,s;
scanf("%d",&m);
while(m--){
scanf("%d",&n);
printf("%d
",f(n,2));
}
return 0;
}
[EX A]: 1

[EX Q]: int fun(int i,int j,int count)
{
int k;
for (k=i;k<=sqrt(j);k++)
if(j%k==0)
{
count++;
count=fun(k,j/k,count);
}
return count;
}

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

printf("%d
",count);
}
return 0;
}
[EX A]: 3

[EX Q]: int f(int m,int l)
{
int re=0,j;
if(l==4)
re=1;
if(l>4)
{
for(j=m;j<=sqrt(l);j++)
{
if(l%j==0)
{
re=re+1+f(j,l/j);
}
}
}
return re;
}
int main()
{
int n,i,a[100]={0};
scanf("%d",&n);
for(i=0;i<n;i++)
{
scanf("%d",&a[i]);
}
for(i=0;i<n;i++)
{
printf("%d
",(f(2,a[i])+1));
}

}

[EX A]:
3