jmwalker's Avatar, Join Date: Sep 2006
Newbie Member
My question is how would you write a pow statement for example account = interest(1/r)r?
shabbir's Avatar, Join Date: Jul 2004
Go4Expert Founder
Prototype: double pow(double b, double p);
Header File: math.h (C) or cmath (C++)
Explanation: This function raises b to the p power.
example: cout<<"4 to the 5th power is: "<<pow(4, 5);