0
how to raise the power of some number
like 5raise to the power 9
5 Answers
+ 1
Use the pow function located in cmath.
0
I don't understand ur question
0
the power exponents or power as inter additions
0
Use pow(power, number). To use pow add
#include<math.h>.
Example:
For the square of 3
pow(2,3);
0
multiply it by itself......
//here a is the no. and b is the power
/* I made a function power that asks the input for then. and it's power and returns the vmalue of a to the power b*/
int power(int a,b){
int n=0;
while (n<b){
a=a*a;
n++;
}
if (b=0){
a=1;
}
return a;
}