If anyone can, Please help me out understand the logic of the code and most likely how it works. I was able to come up with it somehow but without knowing proper back processing, It is kinda weird to me. Just posting the part where it is confusing. And it is about counting the digits in entered number(I gave count value of 0 before hand already).
Code:for(;n<0;) { count=count+1; n=n/10; }