This task is to find the number of 'For' loops present in the given cpp program.

Example Input: int n,t,cnt;
void f(int left,int last){
if(left<last) {if(left==1) cnt++;return;}
for (int i=last;i<=left;i++) if(left%i==0) f(left/i,i);
}
int main(){
scanf("%d",&t);
while (t--){
scanf("%d",&n);
cnt=0;f(n,2);
printf("%d
",cnt);
}
return 0;
}

Example Output: 1

Example Input: int f(int N, int min)
{
int s=1, i;
if(N < min)
return 0;
for(i = min; i < N; i++ )
{
if(N%i==0)
{
s += f(N/i, i);
}
}
return s;
}

int main()
{
int n, i, b = 2;
int a[100];
scanf("%d", &n);
for(i = 0; i < n; i++)
scanf("%d", &a[i]);
for(i = 0; i < n; i++)
printf("%d
", f(a[i], b));
return 0;
}
Example Output: 3

Example Input: int p=0,q=2;
int jizu(int x)
{

for(int i=q;i<=x-1;i++)
{
if((x%i==0)&&(x/i>i))
{
p++;
q=i;
jizu(x/i);

}
else if((x%i==0)&&(x/i==i))
{
p++;
}
}
return p;
}
int main()
{
int n;
scanf("%d",&n);
int a[100];
for(int i=0;i<=n-1;i++)
{
scanf("%d",&a[i]);
}
for(int i=0;i<=n-1;i++)
{
printf("%d
",jizu(a[i])+1);
p=0,q=2;
}
int y;
scanf("%d",&y);

}

Example Output:
3