forked from badal74/java-codes
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathquestion11.java
More file actions
30 lines (21 loc) · 529 Bytes
/
Copy pathquestion11.java
File metadata and controls
30 lines (21 loc) · 529 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
import java.util.*;
import java.io.*;
public class Question11{
public static void main(String[] args){
/* Conditional Statements
- if(----)
- else if(----)
- else(----)
*/
int marks = 97;
if(marks >= 90){
System.out.println("Grade - A");
}
else if((marks < 90) && (marks >= 75)){
System.out.println("Grade - B");
}
else{
System.out.println("Grade - C");
}
}
}