You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: concepts/loops/about.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -57,7 +57,7 @@ int c{a++};
57
57
The init component usually sets up a counter variable, the condition checks whether the loop should be continued or stopped and the post component usually increments the counter at the end of each repetition.
58
58
59
59
```cpp
60
-
int sum{0}
60
+
int sum{0};
61
61
for (int i{1}; i < 10; ++i) {
62
62
sum += i;
63
63
}
@@ -91,4 +91,4 @@ for (int i{1}; i < 7; ++i) {
91
91
}
92
92
// equal_sum is now 12
93
93
```
94
-
> Note: it is usually easier to understand the logic of the loop, when the use of `break` and `continue` is minimized or entirely avoided.
94
+
> Note: it is usually easier to understand the logic of the loop, when the use of `break` and `continue` is minimized or entirely avoided.
Copy file name to clipboardExpand all lines: concepts/loops/introduction.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -57,7 +57,7 @@ int c{a++};
57
57
The init component usually sets up a counter variable, the condition checks whether the loop should be continued or stopped and the post component usually increments the counter at the end of each repetition.
58
58
59
59
```cpp
60
-
int sum{0}
60
+
int sum{0};
61
61
for (int i{1}; i < 10; ++i) {
62
62
sum += i;
63
63
}
@@ -91,4 +91,4 @@ for (int i{1}; i < 7; ++i) {
91
91
}
92
92
// equal_sum is now 12
93
93
```
94
-
> Note: it is usually easier to understand the logic of the loop, when the use of `break` and `continue` is minimized or entirely avoided.
94
+
> Note: it is usually easier to understand the logic of the loop, when the use of `break` and `continue` is minimized or entirely avoided.
Copy file name to clipboardExpand all lines: exercises/concept/interest-is-interesting/.docs/introduction.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -57,7 +57,7 @@ int c{a++};
57
57
The _init component_ usually sets up a counter variable, the _condition_ checks whether the loop should be continued or stopped and the _post component_ usually increments the counter at the end of each repetition.
0 commit comments