sir this question can be done by
int count=0;
while(n!=0)
{
if(n%10==0)
{
count++;
n=n/10;
}
}
sir this question can be done by
int count=0;
while(n!=0)
{
if(n%10==0)
{
count++;
n=n/10;
}
}
This will give you TLE when N is not a multiple of 10. Also please share link of question you are having doubt in.
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.