Computer Science, asked by ruchijasmatiya, 3 months ago

write a program in C++ to calculate the power of given numbers​

Answers

Answered by sarmadsd
0

Answer:

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:

Answered by sunayana2574
3

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; }

Similar questions