Write a program that reads a number and outputs the number of digits in it. Guaranteed that every input number has 1, 2, 3 or 4 digits.
This problem has lots of possible solutions. Use when for now.
Write a program that reads a number and outputs the number of digits in it. Guaranteed that every input number has 1, 2, 3 or 4 digits.
This problem has lots of possible solutions. Use when for now.
Sample Input 1:
655Sample Output 1:
3Sample Input 2:
12Sample Output 2:
2Create a free account to access the full topic