Count Digits in Number

Medium

📝 Description

Count the number of digits in a number

Input Format

Single integer n

Output Format

Number of digits

Constraints

-10^9 ≤ n ≤ 10^9

🔍 Sample Input

12345
            

✅ Sample Output

5
            

Code Editor

Please login to run and submit code.

Shortcuts: Ctrl+Enter to submit, Ctrl+Shift+R to run