Question: in c++ please Ex 4. Default parameters ( 25 points) A. Write a function that takes two integer numbers as arguments one of them for
Ex 4. Default parameters ( 25 points) A. Write a function that takes two integer numbers as arguments one of them for value and second for the power value (number of times), this function calculates and returns the multiplication of the first value by itself for the given number of times. If the seconf argument is not provided, the functions assumes that its value is 2. B. Test this function in your main with two different ways, one passing only one value, the second one with passing two values. Example: the result of calling the function above F4(3,5) is 33333=243
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
