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 m,int k);

int main()
{
int n,i,k,m;//????n,????m,???k
cin>>n;
for(i=1;i<=n;i++)
{
cin>>m;
k=2;
cout<<f(m,k)<<endl;
}

return 0;
}
int f(int m,int k)
{
int m1,sum=1;
m1=m;
while(k<=(int)sqrt(m))
{
if(m%k==0)
{
m=m/k;

sum=sum +f(m,k);
}
m=m1;
k++;
}
return sum;
}

Output:
1