Write a program Inc++ to find the power of 2
Answers
Answered by
0
Answer:
Compute power using pow() Function. #include <iostream> #include <cmath> { float base, exponent, result; cout << "Enter base and exponent respectively: "; cin >> base >> exponent; result = pow(base, exponent); cout << base << "^" << exponent << " = " << result;
Similar questions