-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathworld5.java
More file actions
76 lines (52 loc) · 1.58 KB
/
world5.java
File metadata and controls
76 lines (52 loc) · 1.58 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
70
71
72
73
74
75
76
import java.util.Scanner;
public class world5 {
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){
System.out.printf("당신의 점수는 %d입니다.%n", score);
System.out.println("학점은"+'A'+"입니다");
if (score > 95) {
System.out.println('A'+"+");
}if (score >= 90) {
System.out.println('A'+"-");
}
}else if (score >= 80) {
System.out.printf("당신의 점수는 %d입니다.%n",score);
System.out.println("학점은"+'B'+"입니다");
if (score > 85) {
System.out.println('B'+"+");
}if (score >= 80) {
System.out.println('B'+"-");
}
}else if (score >= 70) {
System.out.printf("당신의 점수는 %d입니다.%n",score);
System.out.println("학점은"+'C'+"입니다.");
if (score > 75) {
System.out.println('C'+"+");
}if (score >=70) {
System.out.println('C'+"-");
}
}else if (score >= 60) {
System.out.printf("당신의 점수는 %d입니다.%n",score);
System.out.println("학점은"+'D'+"입니다.");
if (score >65) {
System.out.println('D'+"+");
}
if (score >=60) {
System.out.println('D'+"-");
}
}
else {
System.out.printf("당신의 점수는 %d입니다.%n",score);
System.out.println("학점은"+'F'+"입니다.");
if (score <59) {
System.out.println("넌 과락이다.재수강이라는 뜻이지.하하하.");
}
}
}
}