标题:请帮我写一个程序
取消只看楼主
elo
Rank: 1
等 级:新手上路
帖 子:16
专家分:0
注 册:2008-6-24
 问题点数:0 回复次数:0 
请帮我写一个程序
编写一个程序使之读入一系列整型数据直到读入标志值-1时为止。此时程序显示出之前所输入数据的平均值,编写的程序应能产生下面的示例
this program averages a list of integers.
enter -1 to signal the end of the list.
?95
?100
?89
?97
?91
?97
?-1
the average is 94.4
搜索更多相关主题的帖子: 平均值 averages 
2008-09-20 19:51



参与讨论请移步原网站贴子:https://bbs.bccn.net/thread-234288-1-1.html




关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.963454 second(s), 8 queries.
Copyright©2004-2025, BCCN.NET, All Rights Reserved