list2.c
来源:互联网 发布:下载手机截图软件 编辑:程序博客网 时间:2024/05/24 06:05
/*list2.c
*********************
计算一系列整数的平均值,输入的结尾以-1 标示
*/
#include<stdio.h>
main()
{
int i=0;
int value,total;
float ave;
printf("This program average a list of integers./n");
printf("Signal end of the list with a -1./n");
total=0;
while(1){
printf("? ");
scanf("%d",&value);
if(value==-1) break;
total+=value;
i++;
}
ave=1.0*total/i;
printf("The average is %g/n",ave);
getch();
}
- list2.c
- list2
- list2
- list2
- list1.removeAll(list2);
- Java并发读取List2
- LeetCode 61. Rotate List2.
- Remove Duplicates from Sorted List2
- 回忆我的初恋list2
- LeetCode(84)Remove Duplicates from Sorted List2
- GRE造句系列——list1,list2
- 判断list1中是否包含list2元素
- 判断list1中是否包含list2元素
- python基础教程共60课-第27课操作list2
- List入库,把List1中的数据入库到List2中
- List<String> list1 = new ArrayList<String>(0); List<String> list2 = new ArrayList<String>();不同之处???
- 算法竞赛入门经典 6.2.2键式结构 程序源码list2.cpp错误
- 求两个单链表list1与list2的差集,并将结果保存至list1中
- 几个CakePHP知识点
- linux 下的 C++ 程序的内存泄漏的检测方法
- k6or7.c
- 问专家:有关一例EXT3文件系统故障
- 我心中的敏捷(1)----首先不应该是噱头
- list2.c
- 我心中的敏捷(2)----我们的实践
- 优秀程序员的十个习惯
- linux下Apache的使用
- Ajax无限联动菜单
- 我心中的敏捷(3)----两种世界观
- 我心中的敏捷(4)----多样的形式与不变的本质
- Ubuntu 8.1 安装后相关设置
- 对团队知识管理的一些思考