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

Practice with Operators

Finish this program that outputs the result of adding, subtracting, multiplying, and dividing the two variables, a and b.

Read the blocks provided in this this program. Then add the basic blocks to store four number variables for the sum, difference, product, and quotient. Then output the results in the following format.

Sum: 37.25
Difference: -9.75
Product: 323.125
Quotient: 1.709090909090909

Coding:

Blocks

PreviousNext