通过几组数算平均数
来源:互联网 发布:淘宝网折叠餐桌 编辑:程序博客网 时间:2024/05/29 13:43
#include <stdio.h>int main(){ int score1,score2,score3,score4,score5; int totalscore; printf("Input the score of five students:\n"); scanf("%d",&score1); scanf("%d",&score2); scanf("%d",&score3); scanf("%d",&score4); scanf("%d",&score5); totalscore =score1+score2+score3+score4+score5; printf("The average score is %f\n",totalscore/5.0); return 0;}
懂得算几个数的平均数.
阅读全文
0 0
- 通过几组数算平均数
- 平均数
- 平均数
- 平均数
- 平均数
- 平均数
- 输出平均数 (通过传递程序参数实现)
- 计算几个整数的平均数,通过scanf读取最后一个标志位9999
- 移动平均数
- 算术平均数
- 算术平均数
- zjut1179平均数
- 平均数不等式
- 平均数 减法
- 【jzoj4869】【平均数】
- 3.8 平均数
- oj1613: 平均数
- 最大化平均数
- 俩种快速排列
- 大数据WEB阶段(三)CSS
- Android中长按事件时短按事件也触发的问题
- java JVM溢出 java.lang.OutOfMemoryError 解决方法
- shell脚本编写及执行
- 通过几组数算平均数
- 防止重复提交(在拦截器中防止)
- 短信测试的基本常识
- Ubuntu-16.06 + OpenCV-3.3.0 + 一些常见的问题
- OpenCV中光流法跟踪器的使用方法学习
- SSD算法特征map的计算和caffe代码理解
- Mybatis 不确定条件查询(动态语句where和if)借助实体类封装参数
- linux网络常用命令
- 如何在win10上同时安装python2和python3