-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathworld6.java
More file actions
69 lines (46 loc) · 1 KB
/
world6.java
File metadata and controls
69 lines (46 loc) · 1 KB
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
66
67
68
69
import java.util.Scanner;
public class world6 {
public static void main(String[] args) {
int score = 0;
char ch =' ';
String a = " ";
System.out.print("화면에 점수를 입력하세요");
Scanner scanner = new Scanner(System.in);
score = scanner.nextInt();
if (score >= 90){
ch = 'A';
if (score >=95) {
a = "+";
}if (score >= 90) {
a = "-";
}
}else if (score >= 80) {
ch = 'B';
if (score >=85) {
a = "+";
}if (score >= 80) {
a = "-";
}
}else if (score >= 70) {
ch = 'C';
if (score >=75) {
a = "+";
}if (score >=70) {
a = "-";
}
}else if (score >= 60) {
ch = 'D';
if (score >=65) {
a = "+";
}
if (score >=60) {
a = "-";
}
}
else {
ch = 'F';
System.out.println("넌 과락이다.재수강이라는 뜻이지.하하하.");
}
System.out.println("당신의 학점은"+ch+a+"입니다.");
}
}