Digit

Problem:-

Given A Number N, Find The Number Of Digits In N.
Input Format
First Line Take Input Value Of N
Output Format
Number Of Digits In N
Constraints

  • 0 < N < 10 100
SAMPLE INPUT
 
12345678
SAMPLE OUTPUT
 
8
Time Limit:1.0 sec(s) for each input file.
Memory Limit:256 MB
Source Limit:1024 KB

solution:-

#include<stdio.h>
#include”string.h
void main()
{
     char s[1000000];
     long long int l;
     scanf(“%[^n]”,s);
     l=strlen(s);
     printf(“%lu”,l);
}

Leave a Reply

Your email address will not be published.