week14_1.cpp
来源:互联网 发布:知乎如何更改话题选项 编辑:程序博客网 时间:2024/05/22 08:26
//week14_1.cpp
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
int main(int argc, char *argv[])
{
int n, *a;
float ave=0;
scanf("%d",&n);
a=(int *)malloc(sizeof(int)*n);
for (int i = 0; i < n; ++i)
{
scanf("%d",a+i);
ave += a[i];
}
ave = ave/n;
printf("ave=%f\n",ave);
return 0;
}
0 0
- week14_1.cpp
- cpp
- CPP
- CPP
- cpp
- cpp
- CPP
- CPP
- ClientSockThread.cpp&&ClientUrlThread.cpp
- cpp调用其他cpp
- ex34a.cpp&&ex34aDoc.cpp&&ex34aView.cpp
- MainFrm.cpp&&ServerThread.cpp&&SheetConfig.cpp
- CPP thread
- cpp->html
- CFaderWnd.cpp
- PasswordReminder.cpp
- object.cpp
- CmdTarget.cpp
- Codeforces Round #306 (Div. 2)
- POJ 3169-Layout(差分约束系统)
- iPad软件界面设计基本规范
- android app中调用其他应用程序
- solr学习笔记
- week14_1.cpp
- TypeError: Cannot read property 'style' of null 错误解决
- ASE isql 连接
- SAT填空练习题(三) 含答案
- 位域,大小端,比特序
- 比特币底层技术有望帮助公司提高结算延迟
- PHP中使用Imagick实现各种图片效果实例
- 黑马程序员---Java面向对象编程思想小结
- 新GRE阅读的必知2种逻辑思维