Question: please do this using C++ language 4.4 File power.cc Make a function void power(int a, int b, int& c). a and b are input parameters.
4.4 File power.cc Make a function void power(int a, int b, int& c). a and b are input parameters. e is an output parameter. Your function should compute the value a (probably using a for-loop) and store it in c. Make sure that the function signature is precisely what is described above. 4.5 File p3.cc Write a main function. This function should ask the user for two integers. It should then call the power function from power.cc to compute the first integer taken to the power of the second integer (you will have to #include "power.co"). It should then print the output to the console. For example: >Please enter two integers: 53 >5 to the power 3 is 125! In the Makefile, compile this into an executable file p3
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
