write a program in C++ to calculate the power of given numbers
Answers
Answered by
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
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
Computer Science,
1 month ago
Environmental Sciences,
1 month ago
Math,
3 months ago
Biology,
3 months ago
English,
10 months ago
Biology,
10 months ago