Subtraction in C

Level 123 keystrokes

Prints the result of subtracting 37 from 100.

C code

// 100 - 37 is computed first (63), then %d prints it as an integer
// The format string has no \n, so no newline follows
1printf("%d", 100 - 37);

Output

63
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

More C examples at level 1

← C typing practice