Home
About
Contact
Header Ads Widget
Home
Coding Questions
_C/C++ Programs
_Python Programs
_Data Structure Programs
_Competitive Coding
Practice Problems
Key Points
Notes
MCQs
Interview
Home
hackerearth programs
Digit
Digit
Rajnish Tripathi
15:10
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
);
}
Post a Comment
0 Comments
Popular post
PPS 1st year (C programming ) handwritten notes Aktu
11:47
COA notes of all the units aktu university
14:10
pps unit 1 notes
09:54
Social Plugin
MCQs
3/MCQs/post-list
Tags
c-programs
Companies
competitve programs
Data structure
doubts
key points
MCQs
Notes
practice problems
python
0 Comments