-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMarks.java
More file actions
28 lines (24 loc) · 750 Bytes
/
Copy pathMarks.java
File metadata and controls
28 lines (24 loc) · 750 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
import java.util.*;
public class Marks {
public static void main(String args[]){
int input;
Scanner sc = new Scanner(System.in);
do{
int marks = sc.nextInt();
if(marks>=90 && marks<=100){
System.out.println("this is good");
}
else if(marks>=60 && marks <90){
System.out.println("this is also good");
}
else if(marks>=0 && marks<60){
System.out.println("this is good as well");
}
else{
System.out.println("invailed");
}
System.out.println("Do you want to continue? is yes press=1 if no press=0");
input = sc.nextInt();
}while(input == 1);
}
}