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
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
0
Explanation:
sorry please repeat the question ❓
Similar questions