This task is to find the number of 'For' loops present in the given cpp program.
--------
Question: /*
* 009.cpp
*
* Created on: 2012-11-27
* Author: asus
*/
int varieties = 0;//??????

void divide(int forward, int number)//??divide??
{
int i;
if (number == 1)//????
{
varieties++;//??
}
for (i = forward; i <= number; i++)//forward???????,number?????,?forward?????
{
if (number % i == 0)//????
{
divide(i, number / i);
}}}

int main()//???
{
int n = 0, num = 0;
cin >> n;//????
for (int i = 1; i <= n; i ++)
{cin >> num;
divide(2, num);//??
cout << varieties << endl;
varieties = 0;
}
return 0;
}

Answer: 2

Question: int Divide(int a,int b);
int main()
{
int Times=0;
int Num=0;
int i=0;
int Temp[100]={0};
cin>>Times;
for (i=0;i<Times;i++)
{ cin>>Num;
Temp[i]=Divide(Num,Num);
}
for (i=0;i<Times;i++)
{cout<<Temp[i]<<endl;}
return 0;
}

int Divide(int a,int b)
{
int Sum=0;
int i=0;
int Flag=0;
if (a!=1)
{ for (i=b;i>1;i--)
{if (a%i==0)
Sum+=Divide(a/i,i);
Flag=1;
}
}
if (Flag==0||a==1)
{Sum=1;}
return Sum;
}

Answer: 3

Question:
int cut(int m,int l){
int sum=1;
for(int i=l;i<=sqrt((double)m/l);i++){
if((m/l)%i==0){
sum+=cut(m/l,i);
}
}
return sum;
}

int main (){
int n;
cin>>n;
for(int i=0;i<n;i++){
int t=0;
cin>>t;
cout<<cut(2*t,2);
if(i<n-1) cout<<endl;
}

}

Answer:
2