Here's my hw directions:
* Write an entire function named Sub_5
* It has an input parameter named $invalue, subtract 5 from the parameter $invalue
* Return the calculated value (i.e. the result of the subtraction)
* You do not have to call Sub_5, I will do that.
This is the code I did that says it was wrong:
function Sub_5 ( $invalue-5 ) {
return $invalue;
} // end of Sub_5
What did I do incorrectly? Thanks
* Write an entire function named Sub_5
* It has an input parameter named $invalue, subtract 5 from the parameter $invalue
* Return the calculated value (i.e. the result of the subtraction)
* You do not have to call Sub_5, I will do that.
This is the code I did that says it was wrong:
function Sub_5 ( $invalue-5 ) {
return $invalue;
} // end of Sub_5
What did I do incorrectly? Thanks