power function implementation c++ code example
Example 1: c++ power
/* pow example */
#include /* printf */
#include /* pow */
int main ()
{
printf ("7 ^ 3 = %f\n", pow (7.0, 3.0) );
printf ("4.73 ^ 12 = %f\n", pow (4.73, 12.0) );
printf ("32.01 ^ 1.54 = %f\n", pow (32.01, 1.54) );
return 0;
}
Example 2: pow function c++
#include
#include
using namespace std;
int main(){
int x = 2;
int y = 3;
cout<