Find power of a number program in c++
Answers
Answered by
0
Answer:
C++ Program to calculate power of a number using pow function
using namespace std;
int main() { int base, exp ;
cout << "Enter base and exponent\n" ; cin >> base >> exp ;
cout << base << "^" << exp << " = " << pow (base, exp ); return 0; }
Explanation:
Similar questions