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

[EX Q]: int a,n,sum=0;
void t(int m)
{
int i,j;
for(i=m;i<=a;i++)
{
if(a%i==0)
{
a=a/i;
if(a==1)
{
sum+=1;
}
else t(i);
a=a*i;
}
}
}

int main()
{
int k;
cin >> n;
for(k=0;k<n;k++)
{
sum=0;
cin >> a;
t(2);
cout << sum << endl;
}
return 0;
}
[EX A]: 2

[EX Q]: int ans = 0;
void work(int p,int k)
{
if(p == 1){
ans ++;
return ;
}
for(int i =k;i <= p;i ++){
if(p % i == 0){
work(p / i,i);
}
}
}
int main()
{
int n;
scanf("%d",&n);
while(n--){
ans = 0;
int t;
scanf("%d",&t);
work(t,2);
//ans = work(t);
printf("%d
",ans);
}
return 0;
}
[EX A]: 1

[EX Q]:
int num = 1, i, factor;

void f(int factor, int x)
{
for (; factor * factor <= x; factor++)
{
if (x % factor == 0)
{
num++;
f(factor, x / factor);
}
}
}

int main()
{
int a, n;
cin >> n;
while(n--)
{
cin >> a;
f(2, a);
cout << num << endl;
num = 1;
}

return 0;
}

[EX A]:
1