Skip to content

Commit

Permalink
docs: N is not existing variable
Browse files Browse the repository at this point in the history
Fixing this also on the documentation of the exercise,
This should be pointing to `i`.
Previous PR was fixing it on the learning section but it seems
it is also on the exercise itself
  • Loading branch information
rachirib authored Jun 23, 2024
1 parent 3a3e34e commit 39c8cfd
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ In contrast, the keyword `continue` only stops the execution of the current iter
```cpp
int equal_sum{0};
for (int i{1}; i < 7; ++i) {
if (n%2 == 1) {
if (i%2 == 1) {
continue;
}
equal_sum += i;
Expand Down

0 comments on commit 39c8cfd

Please sign in to comment.