\* C Program to to Count Number of Digits of an Integer *\
# include < stdio.h >
int main( )
{
int num, dig ;
printf(" Enter the Number : ") ;
scanf("%d ", & num) ;
dig = 0 ;
do
{
num = num / 10 ;
dig = dig + 1 ;
}
while ( num   > 0 ) ;
printf(" \n Number of digit in Integer : ") ;
printf("%d ", dig) ;
return ( 0 ) ;
}