Actions 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
  13. 13
  14. 14

Math Actions: Subtract and Multiply

For this problem, write an action for Subtract and Multiply. Start by adding two action blocks and rename each Subtract and Multiply. Each has two integer parameters and an integer return value. Once the actions are built, call each action with the arguments 3 and 5(e.g. result = Subtract(3, 5)). Then, output the results. When run, the program should output -6, -2, and 15.

Coding:

Blocks

PreviousNext