Add Or Subtract
[email protected] // 1.0 // type-checkable
Write a function called add_or_subtract
that takes three parameters:
a number for the left side, a number for the right side, and a bool that specifies whether to subtract.
If the bool is true, return the left number minus the right number.
Otherwise, return the left number plus the right number.