第3章39题
来源:互联网 发布:厦门大数据产业协会 编辑:程序博客网 时间:2024/06/11 08:15
#include<stdio.h>
int fun(int x,int n)
{
int i,s=1;
for(i=0;i<n;i++)
s*=x;
printf("%d\n",s);
return s;
}
int main()
{
int a,b;
printf("input your ints:");
scanf("%d%d",&a,&b);
fun(a,b);
return 0;}
int fun(int x,int n)
{
int i,s=1;
for(i=0;i<n;i++)
s*=x;
printf("%d\n",s);
return s;
}
int main()
{
int a,b;
printf("input your ints:");
scanf("%d%d",&a,&b);
fun(a,b);
return 0;}
0 0
- 第3章39题
- 《C++编程》第3章第39题
- 第3章 第3题
- 第2章第3题
- 第2章 第3题
- 第3章 第4题
- 第3章 第5题
- 第3章 第7题
- 第3章 第8题
- 第3章 第9题
- 第3章 第10题
- 第3章 第11题
- 第3章 第12题
- 第4章 第3题
- 第5章 第3题
- 第5章第3题
- 第3章第37题
- 第7章第3题
- 文件上传和下载
- 回文数 LA2889
- 图解数据结构(6)——树及树的遍历
- vmware中增加硬盘空间
- 【原创】Linux 系统移植日志----jffs2文件系统定制
- 第3章39题
- 图解数据结构(8)——二叉堆
- P124.42(统计出具有n个元素的一维数组中大于等于所有元素平均值的元素个数。)
- 同一bundle id的应用,不同证书在设备上覆盖安装会失败
- Apache Tomcat开机后台启动
- SSH项目开发自定义带泛型DaoSupport<T>类以及用户管理UserinfDao类
- Hadoop之——VMware Virtual Ethernet Adapter for VMnet1和8在windows7无法识别的解决方法
- 41A Translation
- Cordova 3.x 基础(7) -- Native API的使用