0
How we take a exponent for any number??
2 odpowiedzi
+ 3
Do you mean raising a number to some n-th power?
If so, you should use pow(a,b) –remember to include cmath library.
#include <iostream>
using namespace std;
#include <cmath>
using namespace std;
int main() {
cout<<pow(5,3)<<endl;
return 0;
}
+ 1
thanks