i have to analyse this code's complexity but i'm very comfused with the condition of IF.
sum=0;
for(i=1;i<n;i++){
for(j=1;j<i*i; j++){
if(j%i==0){
for(k=0;k<j;k++){
sum++;
}
}
}
}
If the "(j%i==0)" if-condition was not there i would be able to compute the complexity but i cant understand it. I need some explanation about how we can compute how many times this condition will be true.
Thank you.