Exerpad
🔥0
0 XP
Lv.1 Beginner
Log In

Digit Counter

Read a positive number and count how many digits it has.

Example 1: Input 42 → Output 2 Example 2: Input 1000 → Output 4

Hint: Keep dividing by 10 using // until you reach 0.

💡 Hints

?Hint 1
🔒Hint 2
🔒Hint 3
python