The pow() function in C++ <cmath> calculates the power of a number, raising a base to an exponent.

Syntax:
cpp
Copy
Edit
double pow(double base, double exponent);
float pow(float base, float exponent);
long double pow(long double base, long double exponent);
base → The number to be raised.
exponent → The power to which the base is raised.
Returns → base^exponent (base raised to the exponent).

istockphoto-629285904-612x612.jpg