//This is a program to find the number of entered digits
#include<stdio.h>
#include<conio.h>
void main()
{
int count=0,num;
printf("\n\nEnter Any Number: ");
scanf("%d",&num);
while(num>0)
{
num=num/10;
count++;
}
printf("\n\nThe Number Of Digits of the entered number is %d",count);
getch();
}
#include<stdio.h>
#include<conio.h>
void main()
{
int count=0,num;
printf("\n\nEnter Any Number: ");
scanf("%d",&num);
while(num>0)
{
num=num/10;
count++;
}
printf("\n\nThe Number Of Digits of the entered number is %d",count);
getch();
}