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

For this problem, add an AbsoluteValue action with one integer parameter and a integer return value. Once you have completed the action, call the action with the argument -78 (e.g., result = AbsoluteValue(-78)). Then, output the result. When run, the program should output the following.

-6
-2
15
17.0
true
78

Coding:

Blocks

PreviousNext