Integer Variables Problems

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

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 integer variables for the sum, difference, product, and quotient. Then output the results in the following format.

Sum: 49
Difference: 15
Product: 544
Quotient: 1

Coding:

Blocks

PreviousNext