Why this FOR LOOP is not ending?

please, try to edit your post so the code look correctly formated


And j++;
Are counter acting statements
So basically j’s value won’t change and so inner while loop will never end if those cases are encountered.

1 Like

even after removing j=j-1 its not working please help!

whats that?

1 Like

that process will run till str[j]==’.’

I still think that the beginning of the problem is poorly formatted presentation, it is really difficult to debug a code that is not easy to follow. If you can’t format it in the forum, can you paste a link to other resource?

Use the expand/collapse drop down arrow at the top right corner, that’ll present the code in a well formatted manner.

1 Like

Now, I have solved it correctly thanks for help to all !!!