pow:指数函数

指数运算。

语法

float pow (float base, float exponent);

参数

base: 底数(float型)

exponent:指数 (float型)

返回值

指数运算结果。

a=pow(2,3)//将2的3次方的值赋值给a