Write a program to implement power function using Function overloading
Input
// power function
#include <bits/stdc++.h>
using namespace std;
int main()
{
double x = 2, y = 4;
// Storing the answer
double result = pow(x, y);
// printing the result
// decimal place
cout << fixed << setprecision(2) << result << endl;
return 0;
}
OUTPUT
16.00