Multiple Values Output in C

Level 127 keystrokes

Outputs two integers separated by a comma.

C code

// Multiple format specifiers can be used in one printf
// Arguments are matched to specifiers in order
1printf("%d, %d\n", 10, 20);

Output

10, 20
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.

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

More C examples at level 1

← C typing practice