习题6.2(3)
来源:互联网 发布:无线键盘 知乎 编辑:程序博客网 时间:2024/06/05 02:13
#include <stdio.h>#include <stdlib.h>int main(){ long term=1,sum=0; int a,i,n; printf("input a,n:"); scanf("%d%d",&a,&n); for(i=1;i<=n;i++) { term=pow(a,i); sum=sum+term; } printf("sum=%1d\n",sum); return 0;}
阅读全文
0 0
- 习题6.2(3)
- 习题6.2(3)
- 习题6.2(1)
- 习题6.2(2)
- 习题6.2(1)
- 习题6.2(2)
- 习题6.2(4)
- 习题6.2(2)
- 习题6.2(1)
- 习题3(3.2)
- 习题3(3.3)
- 习题4.1(3)
- 习题6.1(3)
- 习题6.1(3)
- 习题6.1(3)
- 习题6(3)
- 习题4.1(3)
- 习题6.1(3)
- 6.3
- MVP okhttp+springview+RecyclerView 上拉下拉功能+多条目加载
- Windows CE的电源管理之三
- 第4章实验题:小写字母转换为大写字母
- ANR
- 习题6.2(3)
- 第三章作业
- C++ 指针和引用
- 监督学习之kNN原理解析
- Unity通过射线快速变化物体颜色
- 5.6
- 201312-2 ISBN号码
- 6.11
- 写给有 NOIP考前综合征 的 oier