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

Ex Input:
int fi(int a,int j);
void main()
{
int a,n;
scanf("%d",&n);
while(n--){
scanf("%d",&a);
printf("%d
",fi(a,2));
}
}
int fi(int a,int k)
{
int i,b=1;
if(a==1)
return 0;
for(i=k;i*i<=a;i++)
if(a%i==0)
b=b+fi(a/i,i);
return b;
}

Ex Output:
1

Ex Input:

int fen(int x,int y);

int main(){
int n,i,m[500];
scanf("%d",&n);
for(i=0;i<n;i++)
{
scanf("%d",&m[i]);
printf("%d
",fen(m[i],2));
}
return 0;
}

int fen(int x,int y){
int j,k;
int result=1;
if(x<y)
return 0;
for(j=y;j<x;j++)
{
if(x%j==0)
result+=fen(x/j,j);
}
return result;
}

Ex Output:
2

Ex Input:
int main()
{
int fj(int m,int min);
int t,i,a[100];
cin>>t;
for(i=1;i<=t;i++)
{

cin>>a[i];
cout<<fj(a[i],2)<<endl;
}

return 0;
}
int fj(int m,int min)
{
int counter=1;
int i;
if(m<min)
return 0;
for(i=min;i<m;i++)
if(m%i==0)
{
counter=fj(m/i,i)+counter;
}
return counter;

}

Ex Output:
2