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

Ex Input:
int i,n,k;

int work(int p,int n)
{
if (n==1) k++;
for (int i=p;i<=n;i++)
if (n%i==0) work(i,n/i);
}
int main()
{
int m;
cin>>m;
while (m>0)
{
cin>>n;
k=0;
work(2,n);
cout<<k<<endl;
m--;
}
return 0;
}

Ex Output:
1

Ex Input:
int f(int x,int y) //???????????????y?????????x????????
{
int i,sum = 0;
for(i = x; i <= sqrt(y); i++){
if(y % i == 0) sum += f(i,y / i) + 1;} //??????
return sum;
}

int main(){
int n,x,i,b[100];
cin>>n; //?????????
for(i=1;i<=n;i++){cin>>x;b[i]=x;}
for(i=1;i<=n;i++){cout<<f(2,b[i])+1<<endl;} //???????

return 0;

}

Ex Output:
3

Ex Input:
int breakways(int num, int min);
int main()
{
int n;
cin >> n;
int number;
for (int i = 1; i <= n ; i++)
{
cin >> number;
cout << breakways(number , 2) << endl;
}
}

int breakways(int num, int min)
{
int sum = 0;
for (int j = min ;j <= num ; j++)
{
if (num % j == 0)
{
if (num != j)
sum += breakways (num / j , j);
else
sum += 1;
}
}
return sum;
}

Ex Output:
2