Print Series Why doesnt for loop works but while does

Why doesnt https://ide.codingblocks.com/s/169655 code works like I am not getting N1 numbers even though I am putting the same in for loop ? but same when I do in while loop I am getting the answer https://ide.codingblocks.com/s/169656 whats wrong?

hi
u have to print N1 number
and ur for loop is running from 1 to N1 that means
only N1 times
but the question says u have to print first N1 numbers

so it may not possible that first N1 numbers comes in running the loop from 1 ti N1

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.