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

[EX Q]: int fact(int n,int m);//????fact
int main()//?????
{
	int n,a[35000],i,b[35000];
	cin>>n;
	for(i=0;i<n;i++)cin>>a[i];//???????????
	for(i=0;i<n;i++)b[i]=fact(a[i],2);//?????????????????fact(a[i],2)
	for(i=0;i<n;i++)cout<<b[i]<<endl;//????????
	return 0;
}//?????
int fact(int n,int m)//fact??
{
	int sum=1,i,temp=0;
	if(n<m)return 0;//?n<m,?????0
	else if(n==2)return 1;//?n???2??????1
	else
	{
			for(i=m;i<n;i++)//??????m?n
	{if(n%i==0)sum=sum+fact(n/i,i);}//?n??i????sum??fact(n/i,i)??,????
	return sum;
	}
}//fact??
[EX A]: 4

[EX Q]: int s;
void search(int a,int k)
{
 	 if(a==0)
 	 return ;
 	 if(a==1)
 	 {
 	 return;
	 }
 for(int i=2;i<a;i++)
 {
   if(a%i==0&&a/i>=i&&i>=k&&a/i>=k)
   {
   s++;
   search(a/i,i);
   }
 }
 return ;
}		 		      	     		       
int main()
{
int n,a;
cin>>n;
for(int i=0;i<n;i++)
{
s=1;
cin>>a;
search(a,1);		
cout<<s<<endl;
}

 		 		 						
  return 0;
}					

[EX A]: 2

[EX Q]: int count;
void f(int x,int y)
{
	int i=0;
	if(x>=y)
	for(i=y;i<=x;i++)
	{
		if(i==x)count++;
		if(x%i==0) f(x/i,i);
	}
}
main()
{
	int t;
	int n,i,x,j;
	scanf("%d",&n);
	for(i=0;i<n;i++)
	{
		count=0;
		scanf("%d",&x);
		f(x,2);
		printf("%d\n",count);
	}
}
[EX A]:
2

