Definition: This task is to find the number of 'For' loops present in the given cpp program.
Input: int f(int n,int k){
if(n<k)return 0;
int i,s=1;
for(i=k;i<n;i++){
if(n%i==0)s+=f(n/i,i);
}
return s;
}
int main(){
int m,n,i,ans,s;
scanf("%d",&m);
while(m--){
scanf("%d",&n);
printf("%d
",f(n,2));
}
return 0;
}
Output:
1