Hi, welcome to my website Programming.OM. My name is Om prakash kartik. This blog helps you to learn programming languages concepts and technique.
#include<stdio.h> #include<conio.h> void main() { int n,c=0; clrscr(); printf("Enter a number:-"); scanf("%d",&n); while(n!=0) { n=n/10; c++; } printf("Number of digits=%d",c); getch(); }
0 Comments