Search My BLOG

Free Translater For All Languages

 

Mobile Phone Location Tracker

phone number location and operator in India Just enter 10 digits phone number in the search box and click on Trace.
Enter 10 digits phone number to trace:
All The Best !!!!!

Thursday, November 12, 2009

C Program to display the No. of Digits in an Entered Number

This program displayes the number of digits present in the number that is entered through the input.


#include
#include
void main()
{
unsigned long int num;
int i=0;
clrscr();
printf(”Enter the digit\n”);
scanf(”%lu”,&num);
while(num!=0)
{
num=num/10;
++i;
}
printf(”Length=%d”,i);
getch();
}

No comments:

Post a Comment