PLEASE ELABORATE THE PROBLEM

Actually i’m unable to get what i have to do in this problem , please explain precisely sir !

hello @piyushkumar999999 lets discuss this problem ;
in this question first there are 2 numbers in which the first number is the number for which number of times you have to print the results .
and the second number will be in use when you will apply the condition .
you have to run one do/while loop and for the seroes 3n+2 n will be assigned the values from loop as when n=1 series result is 5 which is not divisible by given n2 so you will print and then you will put the incremented value of loop in n i.e 2 and 3(2)+2 is 6 which is divisible by n2 so you will not print this .
you have to do this till you will print this for n1 times.
i hope you have understood the series .
for your better understanding i am attaching the code here :


Happy Learning !!

Hey @piyushkumar999999
I think Tushar explained good enough :slight_smile: