11智能在线
新记
C语言中p=(1+r)的N次方怎么表示
就是C语言程序设计中第2章第一题
举报该文章
相关建议 2015-05-31
使用pow( )函数即可实现,示例代码如下:
#include <stdio.h>
#include <math.h>
int main()
{
double i = 0 ;
i = pow(2,3); //将2的3次方赋给i
printf("%lf\n",i);
return 0;
}
输出结果:
温馨提示:内容为网友见解,仅供参考
当前网址:
https://11.t2y.org/zz/fsf2qf2pf.html
其他看法
第1个回答 2010-03-11
需要包含数学库
#include <math.h>
pow((1+r),N)
@para1 底数
@para2 指数本回答被提问者采纳
相似回答
大家正在搜
相关问题
用c语言怎么编辑 p = (1+r)的n次方
想问一下,在C语言编程中p=(1+r)^n怎么写?主要就是(...
谁知道c语言中指数函数语句怎么写的,如p=(1+r)^10怎...
C语言里,用vc++怎么使用次方啊?比如p=(1+r)的n次...
C语言中指数怎么表示例如(-1)的n次方怎么表示
简单的C语言 p=(1+r)^n,n为年,r=9%为增长率,...
C语言中int mid=(l+r)>>1是什么意思?
c语言输出值为1.#R怎么回事