Ok so yes and no. This is how I interpret it. Whoever has assigned this for you to do wants you to build a program the implements that function. You need to build the part of the program to demonstrate that that function works and you need to build the function itself. What is given to you is the function definition: int ipow (int base , int exp ) Which tells you that your function will be a value-returning function named ipow that returns an int and is passed two integer variables. Your code should look something like:
#include <iostream>
usingnamespace std;
//function prototype
int ipow(int, int);
int main() {
//code to call function and demostrate it works
//example
cout << "Passing (2,4) should return 16, it returns: "<< ipow(2,4) << endl;
return 0;
}
int ipow(int base, int exp) {
int answer;
//code to rase base to exp
return answer;
}