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

Ex Input:
/*
 * hanshu_huisu_1.cpp
 * Name?????
 *  Created on: 2010-12-7
 *      Author: ??
 */

int n,c;
int solutionnumber(int n,int c){//n?????,c???
	if(n==c) return 1;//?n=c???????????????????????1
	if(n<c) return 0;//??n<c?????????0
	if(n%c==0) return solutionnumber(n/c,c)+solutionnumber(n,c+1);/*?n??c???????
	???c????????????n???c???????*/
	else return solutionnumber(n,c+1);
}
int main(){
	int N,a;
	cin>>N;//?????????
	while(N>0){
	cin>>a;//??????
	cout<<solutionnumber(a,2)<<endl;//?????????
	N--;
	}
return 0;
}


Ex Output:
0


Ex Input:
int num;
void divide(int n,int n2)
{
	int i,m1;
	m1=(int)sqrt((double)n);
	for(i=n2;i<=m1;i++)
	{if(n%i==0)
	{num++;divide(n/i,i);}//?????????????????????????????
	}
}
int main()
{
	int n,i,m;
	cin>>n;
	for(i=0;i<n;i++)
	{
		num=1;
		cin>>m;
		
		divide(m,2);
		cout<<num<<endl;
	}
	return 0;
}

Ex Output:
2


Ex Input:
int divide(int,int);
int main(void)
{
	int n,a;
	cin>>n;
	while(n!=0)
	{
		cin>>a;
		cout<<divide(a,2)<<endl;
		n--;
	}
    return 0;
}

int divide(int x,int t)
{
	int i,sum=0;
	if(x==1) return 1;                      //????x?1
	for(i=t;i<=x;i++) 
	{
		if(x%i==0) sum+=divide(x/i,i);      //?i?x????x/i???????????????i?
	}
	return sum;
}


Ex Output:

1


