Number Variables Problems

  1. 1
  2. 2
  3. 3
  4. 4
  5. 5
  6. 6
  7. 7
  8. 8
  9. 9
  10. 10
  11. 11

Mixing Number and Integer Values

The following program has a problem that needs to be fixed. Read the program and think about the result you expect. Then run the program. Did the result match your expectations?

Edit the program so that when it is run the program outputs the following text.

Result: 1.25

Coding:

Blocks

PreviousNext