2/3 test cases passed

dear sir can u plz tell whats wrong as i am having 2 cases correct out of 3.

#include
using namespace std;
int counter(int n, int N){
int count = 0;
int c;
for(int i=1;i<=n;i++){
c = 3*i+2;
if(c%N == 0){
count = count + 1;
}
}
return count;
}
int main(){

int n, N;
cin >> n;
cin >> N;

if( n,N <= 100 & n,N >= -100){
int c;
for(int i=1;i<=n+counter(n,N)+1;i++){
c = 3*i+2;
if(c%N == 0){
continue;
}
else{
cout << c << endl;
}
}
}
else{
cout << “not in range” ;
}
return 0;
}

@tejas1801
You need to iterate till you do not have n numbers.

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.