回答編集履歴
1
インデント修正
test
CHANGED
@@ -10,21 +10,21 @@
|
|
10
10
|
|
11
11
|
|
12
12
|
|
13
|
-
```
|
13
|
+
```java
|
14
14
|
|
15
15
|
if(bmi < 18.5) {
|
16
16
|
|
17
17
|
health.setShape("瘦せ型");
|
18
18
|
|
19
|
-
|
19
|
+
}else if(bmi >= 18.5 || bmi <25) {
|
20
20
|
|
21
21
|
health.setShape("普通");
|
22
22
|
|
23
|
-
|
23
|
+
}else {
|
24
24
|
|
25
25
|
// health.setShape("肥満");
|
26
26
|
|
27
|
-
|
27
|
+
}
|
28
28
|
|
29
29
|
```
|
30
30
|
|
@@ -42,15 +42,15 @@
|
|
42
42
|
|
43
43
|
bodyType = "瘦せ型";
|
44
44
|
|
45
|
-
|
45
|
+
} else if(bmi >= 18.5 || bmi <25) {
|
46
46
|
|
47
47
|
bodyType = "普通";
|
48
48
|
|
49
|
-
|
49
|
+
} else {
|
50
50
|
|
51
51
|
// bodyType = "肥満";
|
52
52
|
|
53
|
-
|
53
|
+
}
|
54
54
|
|
55
55
|
health.setShape(bodyType);
|
56
56
|
|
@@ -76,15 +76,15 @@
|
|
76
76
|
|
77
77
|
bodyType = "瘦せ型";
|
78
78
|
|
79
|
-
|
79
|
+
} else if(bmi >= 18.5 || bmi <25) {
|
80
80
|
|
81
81
|
bodyType = "普通";
|
82
82
|
|
83
|
-
|
83
|
+
} else {
|
84
84
|
|
85
85
|
// bodyType = "肥満";
|
86
86
|
|
87
|
-
|
87
|
+
}
|
88
88
|
|
89
89
|
health.setShape(bodyType);
|
90
90
|
|