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

Input: Consider Input: /*
* Created on: 2011-11-18
* Author: 1100012870
*/

int su[40000],b[10000],ans;

void zhaosushu()
{
int i,j,p;
for(i=2;i<32768;i++)
{
p=1;
for(j=2;j<=sqrt(i);j++)
if(i%j==0){
p=0;
break;
}
if(p==0)continue;
su[p]=1;
}
}

void resolve(int a,int x)
{
int i;
if(a==1 || (su[a]==1 && a>=b[x-1])) {
ans++;
return;
}
for(i=2;i<=a;i++)
if(a%i==0 && i>=b[x-1]){
b[x]=i;
resolve(a/i,x+1);
b[x]=0;
}
}

int main()
{
int n,i,a;
memset(su,0,sizeof(su));
zhaosushu();
cin>>n;
for(i=1;i<=n;i++)
{
cin>>a;
ans=0;
memset(b,0,sizeof(b));
resolve(a,1);
cout<<ans<<endl;
}
return 0;
}

Output: 4

Input: Consider Input: int t=0,ways; //??????t?ways
void divide(int x,int h)
{
int i;
if(x==1) //??x==1
{t++;ways=t;} //t+1?ways?????t
else
for(i=h;i<=x;i++)
if(x%i==0)
{h=i;
divide(x/h,h); //h?????????????divide?????????
}
}
int main()
{
int n;
cin>>n;
int a[n];
for(int i=0;i<n;i++)
{cin>>a[i];
t=0;divide(a[i],2);
cout<<ways<<endl;}
return 0;
}

Output: 2

Input: Consider Input: int sushu(int b)
{
int flag=1,i;
if(b==2)
return 1;
if(b%2==0)
return 0;
for(i=2;i<=b/2;i++)
{
if(b%i==0)
{
flag=0;
break;
}
}
if(flag==0)
return 0;
else
return 1;
}
int number(int a,int b)
{
int i,total=1;
if(sushu(a))
{
total=1;
return total;
}
for(i=b;i<=a;i++)
{

if(a%i==0&&a/i>=i)
{
total=total+number(a/i,i);
}
}
return total;
}
void main()
{
int n,i,A[100],B[100];
scanf("%d",&n);
for(i=0;i<n;i++)
{
scanf("%d",&A[i]);
B[i]=number(A[i],2);
}
for(i=0;i<n;i++)
{
printf("%d
",B[i]);
}
}
Output: 4