Please explain the input and output of print series

I can’t understand the i/p and o/p of print series, can you help how the output is derived from the input ,???

Hello @maheshoz

Here in this problem we need to print first N1 terms of the series 3n + 2 which are not multiples of N2.

Let’s take an example
N1 = 5 and N2 = 2

=> We need to print first 5 terms of the series 3n + 2 which are not multiples of N2.
for n = 1
3n + 2 = 5 print it as it is NOT a multiple of 2

for n = 2
3n + 2 = 8 don’t print it as it is a multiple of 2

for n = 3
3n + 2 = 11 print it as it is NOT a multiple of 2

for n = 4
3n + 2 = 14 don’t print it as it is a multiple of 2

for n = 5
3n + 2 = 17 print it as it is NOT a multiple of 2

for n = 6
3n + 2 = 20 don’t print it as it is a multiple of 2

for n = 7
3n + 2 = 23 print it as it is NOT a multiple of 2

for n = 8
3n + 2 = 26 don’t print it as it is a multiple of 2

for n = 9
3n + 2 = 29 print it as it is NOT a multiple of 2

We have printed 5 terms. DONE
the 5 terms are 5, 11, 17, 23, 29

Let me know if you still need any help.

i understand the problem now, thanks for the thorough description.