Simple Addition in C

Level 124 keystrokes

Outputs the result of adding 10 and 20.

C code

// The + operator performs addition
// The expression 10 + 20 is evaluated before printing
1printf("%d\n", 10 + 20);

Output

30
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