TASK DEFINITION: This task is to find the number of 'For' loops present in the given cpp program.
PROBLEM: 
int f(int a,int min)
{ 
if(a < min)
{ 
return 0; 
} 
int result = 1; 
for(int i = min;i<a;i++)
{ 
if(a % i == 0)
{ 
result += f(a/i,i); 
} 
} 
return result; 
} 

main()
{
      int n;
      scanf("%d",&n);
      int i;
      int a;
      int b;
      for(i=0;i<n;i++)
      {
            scanf("%d",&a);
            int min=2;
            b=f(a,2);
            printf("%d",b);
            printf("\n");         
      }
      }


SOLUTION: 2

PROBLEM: int f(int a,int min)
{ 
    int i,result; 
    if(a<min) 
        return 0; 
    result=1; 
    for(i=min;i<a;i++) 
        if(a%i==0) 
            result+=f(a/i,i);
    return result; 
} 
int main() 
{ 
    int i,n,num[100]; 
    cin>>n; 
    for(i=0;i<n;i++) 
    { 
        cin>>num[i]; 
        cout<<f(num[i],2)<<endl; 
    } 
    return 0; 
} 


SOLUTION: 2

PROBLEM: int Factorization(int,int);
int main()
{
    int n=0,num=0;
    cin>>n;
    for(int i=0;i<n;i++)
      {
          cin>>num;
          cout<<Factorization(num,2)+1<<endl;
      }
      return 0;
}


int Factorization(int num,int n)
{
    int count=0;
    for(int i=n;num/i>=i;i++)
       if(num%i==0)
       {
           count++;
           count=count+Factorization(num/i,i);
       }
    return count;
}


SOLUTION:
2

