Skip to content

Commit 15d6a91

Browse files
authored
Update 07_cppBeginners.cpp
1 parent 0e5d6d4 commit 15d6a91

File tree

1 file changed

+11
-3
lines changed

1 file changed

+11
-3
lines changed

C++/07_cppBeginners.cpp

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,19 @@ int main()
2222

2323

2424
int calculation3 = (4 + 3) * 7; // calculation2 = 49
25-
25+
26+
27+
int calculation4 = 2 + 6 * 3; // It gives us 2 + ( 6 * 3)= 20
28+
29+
30+
int calculation5 = (2 + 6) * 3;// calculaton5 = 24
31+
32+
2633
cout << "calculation1: " << calculation1 << endl;
2734
cout << "calculation2: " << calculation2 << endl;
2835
cout << "calculation3: " << calculation3 << endl;
29-
30-
36+
cout << "calculation4: " << calculation4 << endl;
37+
cout << "calculation5: " << calculation5 << endl;
38+
3139
return 0;
3240
}

0 commit comments

Comments
 (0)