Computer Science, asked by dabodiya6043, 18 days ago

Find power of a number program in c++

Answers

Answered by srnroofing1717
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:

\huge\colorbox{cyan}{••Thank you••}

Similar questions