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

[EX Q]: int count;
void fun(int m,int n)
{   if(m <=sqrt(n)){
    for (int a=m;a <=sqrt(n);a++)
	{
	if(n%a==0){
		count ++; fun (a,n/a);}
	else count=count; 
	}}
	else count=count; 
 } 
main()
{
	int n;scanf("%d",&n);
	for (int i =0;i<n;i++)
	{
		count=0; 
		int num;scanf("%d",&num);
		for(int j=2;j<=sqrt(num);j++)
		{
			if(num%j==0)
			{count ++; fun(j,num/j);}
		}
		printf ("%d\n",count+1); 
	}}
[EX A]: 3

[EX Q]: int de(int s,int a){      //???????a???????s?????????
	int sum=0;           //?????????????
	if(a==1)return 1;    //a?????????????????
	else if(s>a)return 0;   //a?????????????????????
	for(int i=s;i<=a;i++)  //for????a??????????
		if(a%i==0)sum=sum+de(i,a/i);  //?????????????????????
	return sum;       //??????
 }
 int main(){      //???
     int n;                //??????n????????
     cin>>n;        //??n??
     while(n>0){      //while??????????
    	 int a;         //??????a
    	 cin>>a;              //??a??
    	 cout<<de(2,a)<<endl;   //???a???????2??????????
    	 n--;                //n???
     }
     return 0;     //?????????????????
}
[EX A]: 1

[EX Q]: int im(int n,int max)
{
    int s=0,i;
    if(n==1)
    return 1;
    for(i=max;i>1;i--)
    if(n%i==0)
    s+=im(n/i,i);
    return s;
}
int main()
{
    int i,n,t;
    scanf("%d%d",&n,&t);
    printf("%d",im(t,t));
    for(i=1;i<n;i++)
    {
                    scanf("%d",&t);
                    printf("\n%d",im(t,t));
    }
    //getch();
    return 0;
}

[EX A]:
2