Answers for "pow fn in c++"

C++
2

how to write something in power of a number in c++

#include <iostream>
#include <cmath>
using namespace std;
int main(){
  cout<<pow(10,2);
  return 0;
}
Posted by: Guest on December-02-2020
0

Power Function in C/C++

#include <cmath> //library for the function 

pow(x,y);

Given two numbers base (x) and exponent (y), pow() function finds x raised to the power of y.
Posted by: Guest on September-28-2021

Browse Popular Code Answers by Language