Addition in C++
Level 122 keystrokes
Prints the sum of 5 and 3, which is 8.
C++ code
// 5 + 3 is evaluated first, because + binds tighter than <<// The result 8 is then sent to cout1cout << 5 + 3 << endl;Output
8
Practice typing this code. Results are not recorded in the rankings.
Symbols in this code
The symbols you type in this C++ code and how often they appear.
<× 4;× 1+× 1