Function name : pow
Header file : <math.h>
Usage : double pow(double x, double y);
Function : Exponential function (x raised to the yth power)
Parameters : double x is the base, double y is the exponent
Return value : Returns x raised to the yth power
Program example : Find the value of x raised to the yth power and output the result
#include<stdio.h>#include<math.h>intmain(void){doublex=2.0,y=3.0;printf(%lfraisedto%lfis%lfn,x,y,pow(x,y)); return0;}
Running results:
2.000000raisedto3.000000is8.000000