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 m,n,num;

void dfs(int i,int j)
{
int x;

if (i==1)
{
num++;
return;
}
for (x=j;x<=i;x++)
if (i%x==0)
dfs(i/x,x);
}

int main()
{
cin>>m;
while(m>0){
num=0;
cin>>n;
dfs(n,2);
cout<<num<<endl;
m--;
}
}
Output:
1