Input
Output
>> javac Main.java
>> java Main
Enter any number : 
Total digits in 123456 : 6