Use C++:
Assume the following variable definitions appear in a program:
double base = 10.0;
double result;
1. Write a statement that uses the pow function to raise the base variable to the power of 5, and assigns the result to the result variable. (Assume that the program includes the necessary header file for the pow function.)

Respuesta :

ijeggs

Answer:

result = pow(10,5);

Explanation:

A complete code in C++ with the necesary header file for the math class is given below:

#include <iostream>

//import the header file to use the power function

#include<cmath>

using namespace std;

int main()

{

   double base = 10.0;

   double result;

  //Use Power function to raise base to power of 5

   result = pow(10,5);

   //print out the result

   cout<<result;

   return 0;

}