Teacher:This task is to find the number of 'For' loops present in the given cpp program.
Teacher: Now, understand the problem? Solve this instance: int d;
int fen(int i,int a)
{
if(i>a)
{
return 0;
}
int result=1;
int j;
for(j=i;j<a;j++)
{
if(a%j==0)
{
result=result+fen(j,a/j);
}
}
return result;
}
int main()
{
int n;
cin >> n;
int k=0;
while(k<n)
{

int a;
cin >> a;
int i=2;
d=fen(i,a);
cout << d << endl;
k++;
}
return 0;
cin.get();cin.get();cin.get();
}

Student:
1