This program is supposed to take two numbers (a base and an exponent) and calculate the power. For example, base 5 to the power of 2 should equal 25. But when I input these two numbers, it won't output the result. Here is my code:

```
#include <iostream>
#include <cmath>

using std::cout;
using std::cin;
using std::endl;

double power(double base, int exponent) //declaring and defining
{
    double result = 1;
    for(int i = 0; i = exponent; i++) // @suppress("Assignment in condition")
    {
        result = result + base;
    }
    return result;
}

void print_pow(double base, int exponent)
{

    double myPower = power(base, exponent);
    cout << base << " raised to the " << exponent  << " power is " << myPower << endl;
}

int main()
{
    double base;
    int exponent;
    cout << "What is the base? ";
    cin >> base;
    cout << "What is the exponent? ";
    cin >> exponent;
    print_pow(base, exponent);
}

Console:

What is the base? 5`
What is the exponent? 2

```

After entering these two numbers, it is missing the answer. It is just a blank line on my console.