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 number=0;
int main()
{
void f(int first,int m);
int n,i,num;
cin>>n;
for(i=0;i<n;i++)
{
cin>>num;
f(2,num);
cout<<number/2<<endl;
number=0;
}
return 0;
}
void f(int first,int m)
{
int i;
for(i=first;i<=m;i++)
{

if(m%i==0)
{
m=m/i;
f(i,m);
if(m!=1)
m=m*i;

}
}
if(m==1)
number+=1;
}

Student:
2