Detailed Instructions: This task is to find the number of 'For' loops present in the given cpp program.
Q:
int kind (int k,int a)
{
int i,j,temp=0;
int x;
for (i=a;i<k;i++)
{
if (i<=k/i&&k%i==0)
{

x=k/i;
// printf("%d*%d=%d
",x,i,k);
temp++;
for (j=i;j<x;j++)
{
if (j<=x/j&&x%j==0)
{
temp=temp+kind(x,j);
break;
}

}

}
}

return (temp);
}
int main ()
{
int n,i,s,a[32768][2];
scanf("%d",&n) ;
for (i=0;i<n;i++)
{
scanf("%d",&a[i][0]);
a[i][1]=kind(a[i][0],2);
}
for (i=0;i<n;i++)
{
printf("%d
",a[i][1]+1);//k=k????
}
//scanf("%d",&n) ;
return 0;
}

A:
4