Print series problem

im not able to pass a test case otherwise my code is running
https://online.codingblocks.com/player/27292/content/8105/4804?tab=submissions

You have attached a wrong link.
Please, paste your code on the IDE provided by Coding Blocks and share it’s link.

this the link then of ide

What is the purpose of that if else (conditional) statement in your code?

Is there any need of incrementing N1? Think.
How does N1 effect the output? Think.
Hint: N1 defines the number of outputs

Why am I checking for N2%y!=0? Is there any need? Think.

I would suggest you to read the question before answering these questions.

I hope this would help.
If you still have doubts, feel free to ask.