Answers for "pow() in cpp"

C++
20

pow c++

#include <iostream>
#include <cmath>
using namespace std;
int main ()
{
  double base, exponent, result;		
  base = 3.4;	
  exponent = 4.4;	
  result = pow(base, exponent);		
  cout << base << "^" << exponent << " = " << result;		
  return 0;
}
Posted by: Guest on January-10-2020
1

pow in cpp header file

#include<cmath> //header file for pow fun


   pow(a,b)    // a^b
Posted by: Guest on July-12-2020

Browse Popular Code Answers by Language