Print series doubt

sir i am not getting where i have gone wrong.

you have passed all your cases
and got full points

your code

#include<iostream>
using namespace std;

int main()
 {
	int N1,N2,N,num;
	cin>>N1;
	cin>>N2;
	for(N=1;N1>0;N++)
	{
		num=3*N+2;
		if(num%N2!=0)
		{
			cout<<num<<endl;
			N1--;
		}
	}
	return 0;
 }

is you have any further doubt

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.