当前位置:网站首页>100人成绩的平均
100人成绩的平均
2022-06-28 19:28:00 【Yuyy】
本文最后更新于 1170 天前,其中的信息可能已经有所发展或是发生改变。
#include "stdafx.h"
#include<cstdio>
using namespace std;
int main()
{
int i, sum=0,s[100];
for (i = 0; i < 100; i++)
{
int k = i + 1;
printf("请输入第%d位同学的成绩\n",k);
scanf("%d", &s[i]);
sum = sum + s[i];
}
sum = sum / 100;
printf("这100同学的平均成绩为\n",sum);
return 0;
}Post Views: 298
边栏推荐
- Ffmpeg learning summary
- MDM data analysis function description
- 多测师肖sirapp中riginal error: Could not extract PIDs from ps output. PIDS: [], Procs: [“bad pid
- Building tin with point cloud
- 腾讯汤道生:面向数实融合新世界,开发者是最重要的“建筑师”
- Cross cluster deployment of helm applications using karmada
- Variable autoencoders (vaes)
- 180.1. Log in continuously for n days (database)
- Render function parsing
- leetcode 1647. Minimum deletions to make character frequencies unique
猜你喜欢

Cross cluster deployment of helm applications using karmada

Group programming TIANTI competition exercise - continuously updating

Digital collection, ten thousand words long text, most of the questions you want to know have been clearly explained, which must be seen by practitioners

PCL 环境下安装配置CGAL 5.4.1

rancher增加/删除node节点

Win11底部状态栏如何换成黑色?Win11底部状态栏换黑色的方法

Chunfeng power and Huawei work together to build a smart Park benchmark, and the future factory innovation will reach a new level

Graduation project - Design and development of restaurant management game based on unity (with source code, opening report, thesis, defense PPT, demonstration video and database)

grafana绘制走势图

Try except add auxiliary new column
随机推荐
Variable autoencoders (vaes)
Web3 that unleashes the value of the Internet
事实/论断/断言/结论/断定/判定
内核错误怎么解决?Win11系统内核错误解决方法
Installation and configuration of CGAL in PCL environment 5.4.1
How to resolve kernel errors? Solution to kernel error of win11 system
Find out the users who log in for 7 consecutive days and 30 consecutive days
令人惊艳的NanoPC-T4(RK3399)作为工作站的初始配置和相关应用
微信小程序_8,视图与逻辑
怎样去除DataFrame字段列名
颜色渐变的FontAwesome图标
How does the computer check whether the driver is normal
The amazing nanopc-t4 (rk3399) is used as the initial configuration and related applications of the workstation
matlab 受约束的 Delaunay 三角剖分
async-validator. JS data verifier
Redis 如何实现库存扣减操作?如何防止商品被超卖?
智能计算系统3 Plugin 集成开发的demo
G 双轴图sql脚本
F (x) construct the equation, calculate the partial derivative by gradient descent, determine the partial derivative adjustment by loss function, and deal with nonlinear problems by activation functio
机器学习笔记 temperature+Softmax