I need help figuring out how to get a number to a power and it displaying the results. What I mean is, I define x as 2 and say n as 3. That would be 2^3, or the number 8. Inside the PowerOf() function, I can't figure out the code to do that. I know it has something to do with a for loop though.Code:/* Title: c5 Review 9 (c05r09) */ #include <iostream.h> // ---------------------------------------- void Introduction() { IGNORE THIS PART } // ---------------------------------------- double PowerOf(double x, int n) { CODE NEEDED HERE return (); } // ---------------------------------------- int main() { double x; cout << "Enter the base number: "; cin >> x; int n; cout << "Enter the exponent: "; cin >> n; PowerOf(x, n); return(0); }