This is my piece of code can anyone tell me what am i doing wrong here
Replace all 0's with 5
Modified Code
you have missed some cases it have corrected your code
check the modified Code
and if you have any doubt feel free to ask
hey i did the same code too but that time it was showing one test case didn’t passed…can you please tell what i am doing wrong here https://ide.codingblocks.com/s/625976… this is my code here help me out here
anyone available here help me pout please
yes
sorry , actually i missed your doubt
checking your code wait
return type of convert0to5 function is int
so you have to return integer from the function
hence instead of printing the ans just return it
as i have done in modified Code (already shared above)
i did it too… but it ain’t passing the test case 1 other than that all the cases have been passed
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.