Rahul
Dead Member
how would i code when a raise a variable to a power, whihc is also a variable, for eg: firstNumber^secondNumber
cheers
cheers
Students helping students, join us in improving Bored of Studies by donating and supporting future students!
http://www.cppreference.com/stdmath_details.htmlThe pow() function returns base raised to the exp power. There's a domain error if base is zero and exp is less than or equal to zero. There's also a domain error if base is negative and exp is not an integer. There's a range error if there's an overflow.PHP:#include <math.h> double pow( double base, double exp );
