質問編集履歴

1

コードの修正

2020/05/01 15:15

投稿

q-.-p
q-.-p

スコア10

test CHANGED
File without changes
test CHANGED
@@ -20,11 +20,11 @@
20
20
 
21
21
 
22
22
 
23
- $val = $a / (100 / $b); //150
23
+ $val = $a * ($b / 100); //150
24
24
 
25
- $val2 = $val / (100 / $b); //75 + 150
25
+ $val2 = $val * ($b / 100); //75 + 150
26
26
 
27
- $val3 = $va2 / (100 / $b); //37 + 150 + 75
27
+ $val3 = $va2 * ($b / 100); //37 + 150 + 75
28
28
 
29
29
  .
30
30