Skip to content

Instantly share code, notes, and snippets.

@Aathi03
Aathi03 / count.c
Created April 1, 2017 08:35
counting number of digits
#include<stdio.h>
int main()
{
int a,count=0;
printf("enter the input number");
scanf("%d",&a);
while(a!=0)
{
a=a/10;
count++;