You are on page 1of 1

#include<stdio.

h>
#include<conio.h>
int howmanydigits(int b)
{
int n=0;
while(b)
{
b=b/10;
n=n+1 ;
}
return n;
}

You might also like