Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

len of number in java

Scanner s = new Scanner(System.in);
		int n = s.nextInt();
		
		int length = String.valueOf(n).length();
		System.out.print(length);
 
PREVIOUS NEXT
Tagged: #len #number #java
ADD COMMENT
Topic
Name
4+2 =