Answer is not Coming Correct

There is a logical error in this program so that it is gives right output.I thought that there is error in for loop but not able to find it.

Hey @Ritikkhatana79020,
You have to convert a binary number to its decimal representation in this question. If you are facing any problem, kindly share your code. You can use the coding block ide: https://ide.codingblocks.com/

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.

https://ide.codingblocks.com/s/152023 here is my code

@Ritikkhatana79020,
https://ide.codingblocks.com/s/154079 I have corrected your code. Also if you have any further doubts please reopen the doubt or tag the person who resolved it. Also I apologize for my late response.

@Ritikkhatana79020,
What doubt are you having in this?

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.

i have completed data structure projects in real life and competitive course but not able to download certificate. Please help!!

@Ritikkhatana79020,
What error are you getting?

data not fetched. Even i complete course.

@Ritikkhatana79020,
It is a technical issue. Kindly drop a mail to [email protected] regarding your query. It will be resolved soon. Thanks.

@Ritikkhatana79020
Is your issue resolved now ?
If not, kindly share your email ID with me so I can check.

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.