Double Variable in C

Level 121 keystrokes

Declares a double-precision floating-point variable named price.

C code

// double is for double-precision floating-point numbers
// It keeps about 15-16 significant digits, versus about 7 for float
1double price = 19.99;
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.

  • ;× 1
  • .× 1
  • =× 1

More C examples at level 1

← C typing practice