class digit_count
{
public static void main(int n)
{
String nm=""+n;
System.out.println("Number of digits in the number is="+nm.length());
}
}
{
public static void main(int n)
{
String nm=""+n;
System.out.println("Number of digits in the number is="+nm.length());
}
}

Comments (0)
Post a Comment