Skip to content

Commit f7d79e4

Browse files
committed
教材にsync
1 parent 18ad721 commit f7d79e4

File tree

1 file changed

+2
-2
lines changed
  • docs/1-trial-session/08-loop/_samples/answer-while

1 file changed

+2
-2
lines changed
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
let i = 1;
22
let sum = 0;
33
while (i <= 10) {
4-
sum += i;
5-
i += 1;
4+
sum = sum + i;
5+
i = i + 1;
66
}
77
document.write(sum);

0 commit comments

Comments
 (0)