Scientific Notation in C

Level 124 keystrokes

Outputs the number 12345.0 in scientific notation.

C code

// %e outputs floating-point numbers in scientific notation
// e+04 means × 10^4, with 6 digits after the point by default: 1.234500e+04
1printf("%e\n", 12345.0);

Output

1.234500e+04
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