回答編集履歴
1
インデントの修正
answer
CHANGED
@@ -4,25 +4,25 @@
|
|
4
4
|
|
5
5
|
public class SeisekiMethod {
|
6
6
|
public static void main(String[] args){
|
7
|
-
for(int score = 105 ; score > -5 ; score -= 5){
|
7
|
+
for(int score = 105 ; score >= -5 ; score -= 5){
|
8
8
|
check(score);
|
9
9
|
}
|
10
10
|
}
|
11
|
-
|
11
|
+
|
12
|
-
private static void check(int score){
|
12
|
+
private static void check(int score){
|
13
|
-
|
13
|
+
if( 90 <= score && score <= 100 ){
|
14
|
-
|
14
|
+
System.out.println("点数" + score + "は秀です");
|
15
|
-
|
15
|
+
}else if( 80 <= score && score <= 89 ){
|
16
|
-
|
16
|
+
System.out.println("点数" + score + "は優です");
|
17
|
-
|
17
|
+
}else if( 70 <= score && score <= 79 ){
|
18
|
-
|
18
|
+
System.out.println("点数" + score + "は良です");
|
19
|
-
|
19
|
+
}else if( 60 <= score && score <= 69 ){
|
20
|
-
|
20
|
+
System.out.println("点数" + score + "は可です");
|
21
|
-
|
21
|
+
}else if( 0 <= score && score <= 59 ){
|
22
|
-
|
22
|
+
System.out.println("点数" + score + "は不合格です");
|
23
|
-
|
23
|
+
}else{
|
24
|
-
|
24
|
+
System.out.println("点数は" + 0 + "以上から" + 100 +"以下を入力してください");
|
25
|
+
}
|
25
26
|
}
|
26
27
|
}
|
27
|
-
}
|
28
28
|
```
|