Computer Science, asked by koyalchakraborty, 7 months ago

write a java rogram to check whether the number entered by the iser is a single digit number, a tow digit number or three digit number display tje message accordingly​

Answers

Answered by shivaramcvm
0

Answer:

statements for inputing number

if length of numbers is 1 or 2 or 3 accordingly you print the message

Answered by sumayyaf16
0

Answer:

psvm(String [] args) {

String input =scan for user input;

switch(input.length()):

case 1 :{ sout("single"); break;}

case 2 :{sout("double"): break;}

case 3 :{sout("triple"): break;}

default: sout ("unknown");

}

Hope this helps !

Similar questions