Google
 
Webcprogramming.com




An Affiliate of AIHorizon




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:
//Example will computer 4 to the 5th
#include <cmath>
#include <iostream>
int main()
{
    cout<<"4 to the 5th power is: "<<pow(4, 5);
}
Other Functions

-----
Interested in advertising with us?
Please read our privacy policy.
Copyright © 1997-2005 Cprogramming.com. All rights reserved.

Geodesy Designs