From f38ae7e0e87b55499e7bee5a3b20c552846d4562 Mon Sep 17 00:00:00 2001 From: Shubham Arya <42767393+shubhamarya406@users.noreply.github.com> Date: Fri, 15 Oct 2021 17:37:03 +0530 Subject: [PATCH] Update 24.c --- C/24.c | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/C/24.c b/C/24.c index e69de29..8704010 100644 --- a/C/24.c +++ b/C/24.c @@ -0,0 +1,16 @@ +#include +int main() +{ + long long num; + int count = 0; + printf("Enter any number: "); + scanf("%lld", &num); + do + { + count++; + num /= 10; + } + while(num != 0); + printf("Digits count = %d", count); + return 0; +}