Unable to get output

hello @rizvibilal10
pls save ur code here - > https://ide.codingblocks.com/
and share the link with me


This is the code,I wrote.

declare s and o inside for loop.
rest everything is correct.

ur updated code->https://ide.codingblocks.com/s/288109


Sir,please help in this one also.

which problem is this?
please mention the name

Write a function which prints first N1 terms of the series 3n + 2 which are not multiples of N2.

image
use while loop here.
while (count <N1){
your logic
if(s%N2!=0){
count++;
your logic
}

}


Sir I am getting the same output still the code does not pass the test case, please help
I have used while as mentioned by you earlier.

check this>
image

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.