Detailed Instructions: This task is to find the number of 'For' loops present in the given cpp program.
Problem:int factoring(int a,int b)
{
int i,kind=0;
if(a==1)
{
kind=1;
}

else
{
for(i=b;i<=a;i++)
{
if(a%i==0)
{
kind=factoring(a/i,i)+kind;
}
}
}
return kind;
}

int main()
{
int n,i,j,a[30000]={0},b[30000]={0};
scanf("%d",&n);
for(i=0;i<n;i++)
{
scanf("%d",&a[i]);
b[i]=factoring(a[i],2);
}
for(i=0;i<n;i++)
{
printf("%d
",b[i]);
}
return 0;
}
Solution:
3