Run Code
|
API
|
Code Wall
|
Users
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Blog
your age
//'main' method must be in a class 'Rextester'. //openjdk version '11.0.5' import java.util.*; import java.lang.*; public class ABC { public static void main (String[]args) { Scanner K= new Scanner (System.in); int num; System.out.print("put the number :"); num= K.nextInt(); switch (num) { case 1 : System.out.println("One"); break; case 2 : System.out.println("Two"); break; case 3 : System.out.println("Three"); break; case 4 : System.out.println("Four"); break; case 5 : System.out.println("Five"); break; case 6 : System.out.println("Six"); break; case 7 : System.out.println("Seven"); break; case 8 : System.out.println("Eight"); break; case 9 : System.out.println("Nine"); break; case 10 : System.out.println("Ten"); break; default: System.out.println("The number intered is invalid."); } } }
run
|
edit
|
history
|
help
0
Please
log in
to post a comment.
Sumod
Extracting Value from a String that contains key value pairs
A.K.JAVA_EXPERIENCE_1
Aaina
상속1
add static
java274
Desvio Padrão - LPI
post decrement
Two Sum in Sorted input array
Please log in to post a comment.