instruction:
This task is to find the number of 'For' loops present in the given cpp program.
question:
int d(int,int);
int main()
{
int i,n,x;
cin>>n;
for(i=1;i<=n;i++)
{
cin>>x;
cout<<d(x,2)<<endl;
}
return 0;
}
int d(int x,int y)
{
int j,num=1;
if(x==1)
return 0;
if(x==2)
return 1;
for(j=y;j<=(int)sqrt((double)x);j++)
if(x%j==0)
num+=d(x/j,j);
return num;
}

answer:
2

question:
//============================================================================
// Name : 9.cpp
// Author :
// Version :
// Copyright : Your copyright notice
// Description : Hello World in C++, Ansi-style
//============================================================================

int sum=0;//????sum

void devide(int a,int b)//??
{
if(a==1)
sum++;
else
{
if(a>=b)
devide(a,b+1);
if(a%b==0)
devide(a/b,b);
}
}

int main()//???
{
int n,a;
cin>>n;
for(int i=0;i<n;i++)
{
cin>>a;
sum=0;
devide(a,2);
cout<<sum<<endl;
}
return 0;
}

answer:
1

question:
main()
{
int find(int m,int k);
int n,y,d,c;
scanf("%d",&c);
for(d=0;d<c;d++)
{
scanf("%d",&n);
y=find(n,1) ;
printf("%d
",y);
}
}
int find(int m,int k)
{
int i,t=1,n=0,x=0,a,s=0;
for(i=2;i<=m;i++)
{
if(m%i==0)n++;
}
if(n==1||m==1)return 1;
else
{
for(i=2;i<=m;i++)
{
if(m%i==0&&m/i>=i&&i>=k)
{

k=i;
t=t+find(m/i,k);

}

}
}

return t;
}
answer:
3