From 255447fae0dd32d5fba0642deb4378f9dc1c9029 Mon Sep 17 00:00:00 2001 From: Shankar Lohar Date: Thu, 2 Nov 2023 18:14:14 +0530 Subject: [PATCH 1/4] Missing semi-colon in 'interest-is-interesting' tutorial Missing semi-colon in 'interest-is-interesting' tutorial added closes #732 --- exercises/concept/interest-is-interesting/.docs/introduction.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/exercises/concept/interest-is-interesting/.docs/introduction.md b/exercises/concept/interest-is-interesting/.docs/introduction.md index b250f8e2e..05d1f14be 100644 --- a/exercises/concept/interest-is-interesting/.docs/introduction.md +++ b/exercises/concept/interest-is-interesting/.docs/introduction.md @@ -57,7 +57,7 @@ int c{a++}; 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. ```cpp -int sum{0} +int sum{0}; for (int i{1}; i < 10; ++i) { sum += i; } From 1b350912fd00b99525b8eae2be074820999ea7e1 Mon Sep 17 00:00:00 2001 From: Shankar Lohar Date: Thu, 2 Nov 2023 18:28:22 +0530 Subject: [PATCH 2/4] semicolon fix in for loop cpp/concepts/loops/about.md cpp/concepts/loops/about.md Line 60 in a7653bb --- concepts/loops/about.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/concepts/loops/about.md b/concepts/loops/about.md index 4e921754f..10c335d34 100644 --- a/concepts/loops/about.md +++ b/concepts/loops/about.md @@ -57,7 +57,7 @@ int c{a++}; 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. ```cpp -int sum{0} +int sum{0}; for (int i{1}; i < 10; ++i) { sum += i; } @@ -91,4 +91,4 @@ for (int i{1}; i < 7; ++i) { } // equal_sum is now 12 ``` -> Note: it is usually easier to understand the logic of the loop, when the use of `break` and `continue` is minimized or entirely avoided. \ No newline at end of file +> Note: it is usually easier to understand the logic of the loop, when the use of `break` and `continue` is minimized or entirely avoided. From c68e23c1936a466a332e0e7ee010c3c59a2fe007 Mon Sep 17 00:00:00 2001 From: Shankar Lohar Date: Thu, 2 Nov 2023 18:29:41 +0530 Subject: [PATCH 3/4] semicolon cpp/concepts/loops/introduction.md added cpp/concepts/loops/introduction.md Line 60 in a7653bb --- concepts/loops/introduction.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/concepts/loops/introduction.md b/concepts/loops/introduction.md index b7937c2ad..690d8e88f 100644 --- a/concepts/loops/introduction.md +++ b/concepts/loops/introduction.md @@ -57,7 +57,7 @@ int c{a++}; 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. ```cpp -int sum{0} +int sum{0}; for (int i{1}; i < 10; ++i) { sum += i; } @@ -91,4 +91,4 @@ for (int i{1}; i < 7; ++i) { } // equal_sum is now 12 ``` -> Note: it is usually easier to understand the logic of the loop, when the use of `break` and `continue` is minimized or entirely avoided. \ No newline at end of file +> Note: it is usually easier to understand the logic of the loop, when the use of `break` and `continue` is minimized or entirely avoided. From 02d54119a37d3aeb606b29959c222eb00406e75a Mon Sep 17 00:00:00 2001 From: Shankar Lohar Date: Thu, 2 Nov 2023 18:29:41 +0530 Subject: [PATCH 4/4] semicolon cpp/concepts/loops/introduction.md added cpp/concepts/loops/introduction.md Line 60 in a7653bb --- concepts/loops/introduction.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/concepts/loops/introduction.md b/concepts/loops/introduction.md index b7937c2ad..690d8e88f 100644 --- a/concepts/loops/introduction.md +++ b/concepts/loops/introduction.md @@ -57,7 +57,7 @@ int c{a++}; 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. ```cpp -int sum{0} +int sum{0}; for (int i{1}; i < 10; ++i) { sum += i; } @@ -91,4 +91,4 @@ for (int i{1}; i < 7; ++i) { } // equal_sum is now 12 ``` -> Note: it is usually easier to understand the logic of the loop, when the use of `break` and `continue` is minimized or entirely avoided. \ No newline at end of file +> Note: it is usually easier to understand the logic of the loop, when the use of `break` and `continue` is minimized or entirely avoided.