instruction:
This task is to find the number of 'For' loops present in the given cpp program.
question:
int a=0,s=0;
void find(int n,int prim)
{
if (n==a){s++;}
else
{
for (int i=prim;i<=a/n;i++)
if ((a%(n*i)==0)){find(n*i,i);}
}
}
int main()
{int n=0;cin>>n;
for (int i=1;i<=n;i++)
{
cin>>a;s=0;
for (int i=2;i<=a;i++)
{
if (a%i==0) {find(i,i);}
}
cout<<s<<endl;
}
return 0;
}

answer:
3

question:
int wtf(int p,int a);
int main()
{
int n,i,a,p;
scanf("%d",&n);
for(i=0;i<n;i++)
{
scanf("%d",&a);
printf("%d
",wtf(2,a));
}
return 0;
}

int wtf(int p,int a)
{
int i,ways=0,j=0;
int m=(int)sqrt(a);
for(;p<=m;p++)
{if(a%p==0 && a>=p*p ) {ways=ways+wtf(p,a/p);j++;}}
if(j==0)
return 1;
else
return ways+1;
}

answer:
2

question:
int f(int a,int min)
{
if(a<min)
{
return 0;
}
int result=1,i;
for(i=min;i<a;i++)
{
if(a%i==0)
{
result+=f(a/i,i);
}
}
return (result);
}
int main()
{
int n,a[100],b[100],i;
scanf("%d
",&n);
for(i=0;i<n;i++)
{
scanf("%d
",&a[i]);
}
for(i=0;i<n;i++)
{
b[i]=f(a[i],2);
}
for(i=0;i<n;i++)
{printf("%d
",b[i]);}
return 0;
}

answer:
4