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

Q: int num = 0;
void check(int m, int n)
{
	for(;m <= n; m++)
	{
		if(n % m == 0)
		{
			if(n / m == 1)
			{	
				num++;
				return;
			}
			else
				check(m, n / m);
		}
	}
}
int main()
{
	int n, m;
	cin >> n;
	for(; n; n--)
	{
		cin >> m;
		check(2, m);
		cout << num << endl;
		num = 0;
	}
	return 0;
}

A: 2
****
Q: void main()
{
	int ways(int a, int min);
	int n,b;
	scanf("%d",&n);
	while(n-->0)
	{
		scanf("%d",&b);
		printf("%d\n",ways(b,2));
	}
}
int ways(int a, int min)
{
	if(a<min) return 0;
	int sum=0,i;
	for(i=min;i<=sqrt(a*1.0);i++)
	{
		if(a%i == 0)
			sum = sum + ways(a/i, i);
	}
	return sum+1;
}

A: 1
****
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;     //?????????????????
}

A:
1
****