Detailed Instructions: This task is to find the number of 'For' loops present in the given cpp program.
Q:
int s=0;

void find(int min,int dev)
{
int i;
for(i=min;i<=sqrt((float)dev);i++)
if(dev%i==0)
{
s++;
find(i,dev/i);
}
}

int main()
{
int n,i,m,j;
scanf("%d",&m);
for(j=1;j<=m;j++){
scanf("%d",&n);
for(i=2;i<=sqrt((float)n);i++)
if(n%i==0)
{
s++;
find(i,n/i);
}
printf("%d
",s+1);s=0;}
//getchar();
//getchar();
return 0;
}
A:
3