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: Add

For this task and the next five, build up a math library with a collection of actions. For this problem, build an Add action that has two integer parameters and an integer return value, action Add( integer a, integer b ) return integer. Then call the action, integer result = Add(3, -9), with the arguments 3 and -9. Finally, output the result. When run, it should output -6.

Coding:

Blocks

PreviousNext