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];
longlongint l;
scanf("%[^\n]",s);
l=strlen(s);
printf("%lu",l);
}
EasyCodingZone provides project ideas with source code, programming tutorials, interview preparation, roadmaps and notes for BCA, B.Tech, MCA and computer science students. Learn Python, Java, Web Development, Machine Learning, and DSA in a simple and practical way.