instruction:
This task is to find the number of 'For' loops present in the given cpp program.
question:
int a[1000];
int l=0,x;
int fff(int w,int t,int x);
int main()
{
    int i,j,q,p,n,m,y;
    scanf("%d",&n);
    for(p=0;p<n;p++)
       {q=1;l=0;
        scanf("%d",&x);
        for(i=2;i<=x;i++)
           if(x%i==0)
             {a[q]=i;
             q++;
             }
        fff(q-1,1,x);
        printf("%d\n",l,x);
       }
}
int fff(int w,int t,int x)
{
    int i,j,y,n,m,p;
      for(i=t;i<=w;i++)
            {if(x%a[i]==0)
             {
             x=x/a[i]; 
             if(x==1){l++;}
             if(x>1)
                 fff(w,i,x);
             x=x*a[i];
             }
            }
}

            
 

answer:
3


question:
int f(int m,int min);					//????????
int main()
{
	int n,i,a[100],sum[100];
	cin>>n;								//??????
	for(i=0;i<n;i++)
		cin>>a[i];
	for(i=0;i<n;i++)
	{
		sum[i]=f(a[i],2);				//??????????????
		cout<<sum[i]<<endl;
	}
	return 0;
}

int f(int m,int min)					/*???????????????????????????
										??????????????*/
{
	int i,sum=0;
	if(m==min||m==1)					//???????????????????1???1?					
		return 1;
	else if(m<min)						//????????????????????
		return 0;
	else if(m>min)						//??????????????????????????????????
	{	for(i=min;i<=m;i++)
			if(m%i==0)
				sum+=f(m/i,i);
		return sum;
	}
}
answer:
3


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


