Computer Science, asked by singhmansi0152, 7 months ago

write a program in java to enter an integer number, check that number is a single digit number, double digit number, triple digit number or more than that.​

Answers

Answered by Sree1800
5

Explanation:

import java.util.*;

public class Integer

{

public static void main(Strung args[])

{

int a;

Scanner sc=new Scanner(System.in);

System.out.println("Enter an integer");

a=sc.nextInt();

if(a>=1 && a<=9)

{

System.out.println(a+"is a single digit integer");

}

else if(a>=10 && a<=99)

{

System.out.println(a+"is a double digit integer ");

}

else

{

System.out.println(a+"is an integer of three digit or more");

}

}

}

It will surely help.

If it helps,

Mark me brainliest.

Similar questions