Computer Science, asked by sakifaisal8220, 10 months ago

Write a program Inc++ to find the power of 2

Answers

Answered by ibolbam
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