Multiplication in C++

Level 122 keystrokes

Prints the product of 6 and 7, which is 42.

C++ code

// In C++ the asterisk * is the multiplication operator
// 6 * 7 is evaluated to 42 before it is printed
1cout << 6 * 7 << endl;

Output

42
Practice typing this code

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

More C++ examples at level 1

← C++ typing practice