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

Example Input: int yz[100],all=0;
int yinzi(int num,int amax)
{
int i,j=0,geshu=0,key=num;
if(num==1) return 1;
else
{
for (i=amax;i<all;i++)
{
if(num%yz[i]==0)
{
num=num/yz[i];
geshu=geshu+yinzi(num,i);
num=key;
}
}
return geshu;
}
return 0;
}
int main ()
{
int num,n,i,c,j=0,k;
cin>>n;
for(k=0;k<n;k++)
{
cin>>num;
if(num==1) cout<<1<<endl;
else
{
j=0;
for (i=2;i<=num;i++)
{
if(num%i==0)
{
yz[j]=i;
j++;
}
}
all=j;
cout<<yinzi(num,0)<<endl;
}
}
return 0;
}

Example Output: 3

Example Input: int f(int t,int k)
{
int u=1,i;
if(t>2)
{
for(i=k;i<=sqrt(t);i++)
{
if(t%i==0)
{
u += f(t/i,i);
}
}
return u;
}
else if(t==2)
return 1;
else if(t==1)
return 0;
}
main()
{
int i,n,t;
scanf("%d",&n);
for(i=0;i<n;i++)
{
scanf("%d",&t);
printf("%d
",f(t,2));
}
}

Example Output: 2

Example Input: int disassamble(int, int);
int main()
{
int n;
int i = 1;
int a, result;
cin >> n;
while(i <= n)
{
i++;
cin >> a;
result = disassamble(a, 2);
cout << result << endl;
}

return 0;
}
int disassamble(int a, int y)
{
int i, count = 1;
if(a == 1)
return 0;
if(a == 2)
return 1;
for(i = y; i * i <= a; i++)
{
if(a % i == 0)
{
count = disassamble(a / i, i) + count;
}
}
return count;
}
Example Output:
1