Click the Twitter icon to follow our tweets and
know more about us.

Program to count number of digits

class digit_count
{
  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