You will be given a definition of a task first, then some input of the task.
This task is to find the number of 'For' loops present in the given cpp program.

int f(int a,int min)
{
if(a < min)
{
return 0;
}

int r= 1;
for(int i = min;i<a;i++)
{
if(a%i == 0)
{
r+= f(a/i,i);
}
}

return r;
}

main()
{
int n,a,i,j=0,k,m=0,r=0;
scanf("%d",&n);

for(k=0;k<n;k++)
{
scanf("%d",&a);

if(k!=n-1)
printf("%d
",f(a,2));
else
printf("%d",f(a,2));

}

}
Output:
2