#include<stdio.h>
void main(){
int n,count=0;
printf("Enter an number ");
scanf("%d",&n);
while(n>0)
{
n=n/10;
count++;
}
printf("Number of digits %d", count);
}
Tech Programming Ideas is one of the best places on the programming for programmers. Learn coding with Tech Programming Ideas tutorials. We are covered android programming, php, yii2 framework, javascript, mysql, vb.net etc.
#include<stdio.h>
void main(){
int n,count=0;
printf("Enter an number ");
scanf("%d",&n);
while(n>0)
{
n=n/10;
count++;
}
printf("Number of digits %d", count);
}
No comments:
Post a Comment