Computer Science, asked by aditisingh12468, 9 months ago

Write a java program to enter a numbet and check and print whether it is single digit, double digit, triple digit
or four or more digit​

Answers

Answered by geethagov1959
6

Answer:public class SchoolTest {

   public static void main(String[] args) {

       Scanner reader = new Scanner(System.in);

       int x;

       System.out.println("Please enter a number");

       x = reader.nextInt();

       if ((x > 9 && x < 100) || (x < -9 && x > -100)) {

           System.out.println(true);

           main(args);

       } else {

           System.out.println(false);

           main(args);

       }

   }

}

Explanation:

Answered by ksingh6473
0

Explanation:

sorry please repeat the question ❓

Similar questions