Skip to content

Commit

Permalink
for(;;) を while(true) に変更した (#26)
Browse files Browse the repository at this point in the history
  • Loading branch information
inutamago-dogegg authored May 8, 2024
1 parent 5d02a42 commit 4004a7e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/text/chapter-4/practice/do-not-fail.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
using namespace std;

int main() {
for (;;) {
while(true) {
int score;
cin >> score;
if (score == -1) {
Expand All @@ -21,4 +21,4 @@ int main() {
}
return 0;
}
```
```

0 comments on commit 4004a7e

Please sign in to comment.