Skip to content

Commit a27a16d

Browse files
authored
Update main.cpp
Fix typo
1 parent 04b8351 commit a27a16d

File tree

1 file changed

+4
-4
lines changed
  • Section08-Statements_and_Operators/section08_source_code/IncrementDecrementOperators

1 file changed

+4
-4
lines changed

Section08-Statements_and_Operators/section08_source_code/IncrementDecrementOperators/main.cpp

+4-4
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ int main() {
8282
cout << "Counter : " << counter << endl;
8383
// output: Counter : 11
8484
cout << "Result : " << result << endl;
85-
// output: Counter : 21
85+
// output: Result: 21
8686

8787
// Example 5
8888
counter = 10;
@@ -96,11 +96,11 @@ int main() {
9696
// then counter = counter + 1
9797

9898
cout << "Counter : " << counter << endl;
99-
// // output: Counter : 11
99+
// output: Counter : 11
100100

101101
cout << "Result : " << result << endl;
102-
// output: Counter : 20
102+
// output: Result : 20
103103

104104
cout << endl;
105105
return 0;
106-
}
106+
}

0 commit comments

Comments
 (0)