int t,a,m,n,i,j,c=0; // your code here scanf("%d",&t);
for(a=0;a<t;a++) { for(i=m;i<=n;i++) { for(j=1;j<=i;j++) { if(m%j==0) c++; if(c>2) printf("%d\n",i); c=0;
} }
printf("\n"); }
m and n aren’t assigned values, and that inner loop makes no sense - why are you setting c to 0 here?
I suspect you may not be indenting your code correctly, otherwise you’d have spotted the problem. Or you might be missing some braces.