Question: Define a summing function that takes in two parameters. This function will add its two inputs and return the result. If no inputs are provided
Define a summing function that takes in two parameters. This function will add its two inputs and return the result. If no inputs are provided at the time the function is called, those inputs will take the values of 4 and 8 respectively. Use default parameter values in your function declaration. Then give an example of calling your function with no parameters, with only 1 parameter and with both parameters, assigning each function call to a variable. Write a comment after each variable, indicating what the variable value would be.
please answer It shortly and understandably.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
