Multiplication in C

Level 122 keystrokes

Multiplies 7 by 6 and outputs the result 42 using printf.

C code

// The * operator performs multiplication
// 7 * 6 evaluates to 42, which is then printed
1printf("%d\n", 7 * 6);

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.

  • "× 2
  • ,× 1
  • ;× 1
  • (× 1
  • )× 1
  • *× 1
  • \× 1
  • %× 1

More C examples at level 1

← C typing practice