Chewbacca and Numbers


whats wrong in this code

hello @mohitsharmakosi2001

if at i==0 , s[i]==‘9’ then dont replace it with 0
becuase then it will produce leading zero.

correct it , rest evrything is fine

check ur updated code here->

https://ide.codingblocks.com/s/442718 no change in o/p

i have shared ur updated code above, pls chekc

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.