Print series problem

what is wrong with my code…
when i go for iterating i in whole loop then my code becomes wrong, but if I go for iteration over if condition only, then i am correct, cannot understand the logic behind. It was just hit and trial.

hi @siddharthkumaree21b954_52c884d346b69187 send me code on ide.codingblocks.com
login, copy paste your code, save (ctrl + s) and then send the url of the page

1 Like

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.

1 Like