We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0e5d6d4 commit 15d6a91Copy full SHA for 15d6a91
C++/07_cppBeginners.cpp
@@ -22,11 +22,19 @@ int main()
22
23
24
int calculation3 = (4 + 3) * 7; // calculation2 = 49
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
33
cout << "calculation1: " << calculation1 << endl;
34
cout << "calculation2: " << calculation2 << endl;
35
cout << "calculation3: " << calculation3 << endl;
36
+ cout << "calculation4: " << calculation4 << endl;
37
+ cout << "calculation5: " << calculation5 << endl;
38
39
return 0;
40
}
0 commit comments