please, try to edit your post so the code look correctly formated
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.
even after removing j=j-1 its not working please help!
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.
Now, I have solved it correctly thanks for help to all !!!