Definition: This task is to find the number of 'For' loops present in the given cpp program.
Input: int m=2;
int manners(int a){//????????????
int count=1,t=0;
t=sqrt((double) a);
for(int i=m;i<=t;i++){//?????????
if(a%i==0){
m=i;//?????????????????????
count=count+manners(a/i);//?????????????????
}
}
return count;//?????
}
int main(){
int n, b;
int i=1;
cin>>n;
while(i<=n){
cin>>b;
cout<<manners(b)<<endl;
m=2;//?????
i++;
}
return 0;
}
Output:
1