Count digits (challenges fundamental)

SHOWING : NO OUTPUT IN TESTCASE 4;
can you please check the code.

@aryaman.kumar26 Consider a test case:
0
1

Your code does not give any output for this input. I have made some changes in your code. Refer this:

Hope this helps :slightly_smiling_face:

but now it is not giving output for any other number. why you have commented m=m/10 and if() statement .

@aryaman.kumar26 Sorry…my mistake… please remove the comment from line 12–> m=m/10;
And that if statement was not needed. Control will come out of the loop when m==0

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.