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

[EX Q]: /*
* hehe.cpp
*
* Created on: 2012-11-25
* Author:??
* ???????a?????????????????a = a1 * a2 * a3 * ... * an?
* ??1 < a1 <= a2 <= a3 <= ... <= an?????????????????a = a???????
*/

int sum = 1;//??????Sum
int Fact(int x, int y);

int main() {
int n, a;
cin >> n;
for (int i = 0; i < n; i++) {
cin >> a;
sum = 1;//????sum
Fact(a, 2);//????
cout << sum << endl;
}
return 0;
}
int Fact(int x, int y) {
if (x == 1)
return 0;//???1???0
else {
for (; y <= sqrt(x); y++)//????????
if (x % y == 0) {
sum = sum + Fact(x / y, y); //????????Fact(??y)
}
return 1;
}

}

[EX A]: 2

[EX Q]: int t;//t???
void f(int n,int d)//n?????d???
{
int i;
if(n==1)//
t++;
else
{
for(i=d;i<=n;i++)
{
if(n%i==0)
{
f(n/i,i);
}
}
}
}
int main()
{
int number[100];
int n,i;
int result[100];
cin>>n;
for(i=0;i<n;i++)
{
cin>>number[i];
}
for(i=0;i<n;i++)
{
t=0;
f(number[i],2);
result[i]=t;
}
for(i=0;i<n;i++)
{
cout<<result[i]<<endl;
}
return 0;
}

[EX A]: 4

[EX Q]: int cal; //??cal
int fac(int a,int x){ //a???????
if(x==1) { cal++; return 1; } //??x?i?? ????????????1
for(int i=2;i<=x;i++)
if(x%i==0&&i>=a) //??? ??????????
fac(i,x/i);}
int main(){
int n,b;
cin>>n;
while(n>0){
cal=0;
cin>>b;
fac(1,b);
cout<<cal<<endl;
n--;
}}
[EX A]:
1