算术平均值

  • 8
  • 已锁定
算术平均值是统计中经常使用的值。使用算术平均值的公式可以精确计算出医院的平均温度。现在我们进入关键部分:编写一个程序,该程序从键盘获取数字,对其求和,然后计算平均值,直至用户输入数字 -1 为止。
无法完成此任务,因为你尚未登录。
评论 (6)
  • 受欢迎
你必须先登录才能发表评论
Yingjie Guan
级别 18 ,Quarry Bay
1 七月 2021, 10:06
为什么 如果依次输入数字 -100、0、100 和 -1,程序应显示 0.0。 平均值不是-0,25吗
士兴 彭
级别 15 ,Chongqing,China
10 五月 2022, 06:59
不包含 -1
helloseattle Backend Developer 位于 VMware
19 五月 2021, 10:08
最后一个要求什么意思?the last requirement?bug.......
John Squirrels Website Admin 位于 CodeGym
20 五月 2021, 10:21
Please create your question in HELP section and send us a link to it. Our techteam will be happy to assist you.
陈子煜
级别 10 ,Hong Kong,Hong Kong
25 四月 2020, 11:11
The focus of this topic is on the type conversion of results.
王诗凯
级别 23 ,Redwood City,United States
24 三月 2020, 15:05
应该加一句import java.io.*;