Skip to content

Commit

Permalink
Update chapter-07-complex-loops.md
Browse files Browse the repository at this point in the history
  • Loading branch information
vncpetrov authored Feb 27, 2019
1 parent c4138c0 commit bdb2f24
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions chapter-07-complex-loops.md
Original file line number Diff line number Diff line change
Expand Up @@ -517,11 +517,9 @@ while (true) {

if (n % 2 == 0) {
break; // even number -> exit from the loop
}

}
cout << "The number is not even." << endl;
}

}
cout << "Even number entered: " << n << endl;
```
Може да тествате примера онлайн: https://repl.it/@vncpetrov/OperatorBreak.

0 comments on commit bdb2f24

Please sign in to comment.