-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathJavaApplication60.java
65 lines (54 loc) · 1.56 KB
/
JavaApplication60.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package javaapplication60;
/**
*
* @author Sanjoy Kumar
*
*/
import java.util.Scanner;
public class JavaApplication60 {
/**
* @param args the command line arguments
*/
static Scanner ss=new Scanner(System.in);
public static void main(String[] args) {
// TODO code application logic here
int n;
System.out.println("Enter the value of n");
n=ss.nextInt();
switch(n){
case 10:{
System.out.println("Inserted the number 10");
break;
}
case 20:{
System.out.println("Inserted the number 20");
break;
}
case 30:{
System.out.println("Inserted the number 30");
break;
}
case 40:{
System.out.println("Inserted the number 40");
break;
}
case 50:{
System.out.println("Inserted the number 50");
break;
}
case 60:{
System.out.println("Inserted the number 60");
break;
}
default:{
System.out.println("Inserted the number is wrong");
break;
}
}
}
}