C++ launchpad (print series)

my output is showing 2 also …but sample output has not 2…how to remove 2

ques-
(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.)

please paste your code at https://ide.codingblocks.com/ and save it for better support.

https://ide.codingblocks.com/s/58994

@S18LPC-OL0078 https://ide.codingblocks.com/s/58997 You made little mistake in loops i have corrected your code