1.

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

Answer»

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:



Discussion

No Comment Found