A number (N1) A number (N2) Write a function which prints first N1 terms of the series 3n + 2 which are not multiples of N2


for input 10 4
i am getting
29
26
17
14
11
5
instead of
5
11
14
17
23
26
29
35
38
41
what change should i made in code??

Hey @moksh
Please share your code in Coding blocks IDE

Go to https://ide.codingblocks.com/
Paste your code
Press ctrl+s and click on save
now paste the URL u got here

Hey @moksh
I updated your code and mentioned the changes in comment : https://ide.codingblocks.com/s/356718

Feel free to ask if u dont understand :slight_smile: