1 |
import java.util.Scanner;
|
2 |
|
3 |
public class Main
|
4 |
{
|
5 |
public static void main(String[] args) {
|
6 |
Scanner in = new Scanner(System.in);
|
7 |
int n, count;
|
8 |
n = in.nextInt();
|
9 |
count = 0;
|
10 |
while (n != 0)
|
11 |
{
|
12 |
count ++;
|
13 |
n = n / 10;
|
14 |
}
|
15 |
System.out.println("Number "+ n+ " contains " + count + " digits");
|
16 |
}
|
17 |
}
|