+ 1
use the pow(x,n) function from the cmath header file, where x is the number and n is the exponent. you can use the if... else statements to check if the numbers are positive or not
16th Oct 2016, 3:36 PM
Fhatuwani Luvhengo
Fhatuwani Luvhengo - avatar