Go4Expert (http://www.go4expert.com/)
-   C++ (http://www.go4expert.com/forums/cpp/)
-   -   Pow() (http://www.go4expert.com/forums/pow-t1442/)

jmwalker 20Sep2006 23:08

My question is how would you write a pow statement for example account = interest(1/r)r?

shabbir 21Sep2006 10:59

Re: Pow()
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);

All times are GMT +5.5. The time now is 16:00.