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.

void main()
{
int f(int x,int m);
int k,i,j,n,sum=0;
scanf("%d",&n);
for(i=1;i<=n;i++)
{
scanf("%d",&k);
for(j=2;j<=k;j++)
{
if(k%j==0)
{
sum+=f(k,j);
}
}
printf("%d
",sum);
sum=0;
}
}

int f(int x,int m)
{
int i,sum=0;
if(m==x)
sum=1;
else
{
x=x/m;
for(i=m;i<=x;i++)
{
if(x%i==0)
{
sum+=f(x,i);
}
}
}
return sum;
}
Output:
3