-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrun.java
More file actions
35 lines (29 loc) · 923 Bytes
/
run.java
File metadata and controls
35 lines (29 loc) · 923 Bytes
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
import java.util.*;
class run{
public static void main(String agrs[]){
Scanner sc = new Scanner(System.in);
System.out.println("Enter value of n either 0 or 1");
int n = sc.nextInt();
switch(n){
case 1:
do{
System.out.println("Enter marks");
int marks = sc.nextInt();
if (marks >=90){
System.out.println("This is good");
}
else if (marks>=60){
System.out.println("This is also good");
}
else{
System.out.println("This is good as well");
}
}while(n==1);
break;
case 0:
break;
default:
System.out.println("Enter valid entry");
}
}
}