#include “stdio.h”
#include “math.h” //因为要用到pow函数,因此要调用此库函数
int main()
{
float p,r,n;
r=0.07;
n=10;
p=pow(1+r,n);
printf(“p=%f\n”,p); //pow函数用来求一个数的次方的值,表达形式为pow(x,y)
return 0;
}
#include “stdio.h”
#include “math.h” //因为要用到pow函数,因此要调用此库函数
int main()
{
float p,r,n;
r=0.07;
n=10;
p=pow(1+r,n);
printf(“p=%f\n”,p); //pow函数用来求一个数的次方的值,表达形式为pow(x,y)
return 0;
}