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

[EX Q]: int Divide(int a,int b);
int main()
{
int Times=0;
int Num=0;
int i=0;
int Temp[100]={0};
cin>>Times;
for (i=0;i<Times;i++)
{ cin>>Num;
Temp[i]=Divide(Num,Num);
}
for (i=0;i<Times;i++)
{cout<<Temp[i]<<endl;}
return 0;
}

int Divide(int a,int b)
{
int Sum=0;
int i=0;
int Flag=0;
if (a!=1)
{ for (i=b;i>1;i--)
{if (a%i==0)
Sum+=Divide(a/i,i);
Flag=1;
}
}
if (Flag==0||a==1)
{Sum=1;}
return Sum;
}

[EX A]: 3

[EX Q]: //
// main.c
// ???? ? ??????????
//
// Created by zhaoze on 13-11-5.
// Copyright (c) 2013? zhaoze. All rights reserved.
//

void next(int c[],int x)
{
int i,j;
c[0]++;
for (i=1; c[0]*c[1]*c[2]*c[3]*c[4]*c[5]*c[6]*c[7]*c[8]*c[9]*c[10]*c[11]*c[12]*c[13]*c[14]>x; i++)
{
c[i]++;
for (j=0; j<i; c[j++]=c[i]);
if (c[14]==2) break;
}
}

int reslove(int x)
{
int c[15]={1,1,1,1,1,1,1,1,1,1,1,1,1,1,1};
int p=0;
while (c[0]*c[1]*c[2]*c[3]*c[4]*c[5]*c[6]*c[7]*c[8]*c[9]*c[10]*c[11]*c[12]*c[13]*c[14]<=x)
{
if (c[0]*c[1]*c[2]*c[3]*c[4]*c[5]*c[6]*c[7]*c[8]*c[9]*c[10]*c[11]*c[12]*c[13]*c[14]==x) p++;
next(c, x);
}
return p;
}

void main()
{
int i=0,n,a;
scanf("%d",&n);
while (i++<n)
{
scanf("%d",&a);
printf("%d
",reslove(a));
}

/*
*int c[15]={2,2,2,2,1,1,1,1,1,1,1,1,1,1,1};
*int x=20;
*{next(c, x);
*printf("%d %d %d %d %d %d %d %d %d %d %d %d %d %d %d
",
* c[0],c[1],c[2],c[3],c[4],c[5],c[6],c[7],c[8],c[9],c[10],c[11],c[12],c[13],c[14]);}
*/
}
[EX A]: 2

[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