instruction:
This task is to find the number of 'For' loops present in the given cpp program.
question:
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;
}
answer:
2

question:
int sum=0;
void divide(int n,int a)
{
for(int i=a;i<=n;i++)
{
if((n%i==0))
{
if(n/i==1)
sum++;
else
divide(n/i,i);
}
}
}
int main()
{
int N=0,n=0,i=0;
cin>>N;
for(i=0;i<N;i++)
{
cin>>n;
divide(n,2);
cout<<sum<<endl;
sum=0;
}
return 0;
}
answer:
2

question:
/*
* 1090 ????.cpp
*
* Created on: 2010-11-26
* Author: ???
*/
int f(int a,int min) //???a???????min??????
{
int j,num; //j????num????
if (a<min) return 0; //??a??min?????????????
num=1; //???????
for (j=min;j<a;j++) //????????
if (a%j==0) num=num+f(a/j,j); //???????????
return num; //????
}

int main()
{
int n,i,out,a; //n???????out???????a??????
cin>>n;
for (i=0;i<n;i++)
{
cin>>a;
out=f(a,2); //??????
cout<<out<<endl;
}
return 0;
}
answer:
2