HOW MANY DIGITS DO I HAVE
Write a program to obtain a number $(N)$ from the user and display whether the number is a one digit number, 2 digit number, 3 digit number or more than 3 digit number ### Input First line will contain the number $N$, ### Output Print "1" if N is a 1 digit number. Print "2" if N is a 2 digit number. Print "3" if N is a 3 digit number. Print "More than 3 digits" if N has more than 3 digits. #
HINT LADDERno hints yet
L1 Observation
L2 Technique
L3 Approach
L4 Pseudo-code
🔒
L5 Full solution
L5 unlocks only if you insist twice
solution.cppC++17
CodeSearch Tutor
Hints, not spoilers — it won’t hand over the full solution unless you insist.
Sign in to chat with the tutor and save your progress.
Sign in to start