Header Ads

Header ADS

Number of Digit program in c language

Number of Digit program in c language 



#include<stdio.h>
int main()
{
    int x,count=0;
    scanf("%d",&x);
    while(x!=0)
{   x=x/10;
    count++;

}
printf("number of digit=%d", count);
}

1 comment:

  1. https://www.codewithc.com/c-projects-with-source-code/

    ReplyDelete

Powered by Blogger.