Question: #include using namespace std; int poly ( int ) ; int pow ( int , int ) ; int main ( ) { int i;

#include
using namespace std;
int poly(int);
int pow(int, int);
int main(){
int i;
int result;
for (i=1; i<3; i++){
result = poly(i);
cout << result << endl;
}
}
int poly(int arg){
int temp, temp1, result;
temp = pow(arg,5);
temp1= pow(arg,4);
result = pow(arg,3);
result = temp+temp1+ result +1;
return result;
}
int pow(int arg0, int arg1){
int product =1;
for (int i=0; i

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!