成绩统计
来源:互联网 发布:复旦大学大数据考研 编辑:程序博客网 时间:2024/04/29 06:49
#include<iostream>
using namespace std;
void chengji(const float s[5][3] );
int main( ) {
float s[5][3];
int i,j;
for (i=0;i<5;i++)
for (j=0;j<3;j++)
cin>>s[i][j];
chengji(s);
return 0;
}
void chengji(const float s[5][3])
{
int i,j;
float sum=0;
for(i=0;i<5;i++)
{for(j=0;j<3;j++)
sum=sum+s[i][j];
cout<<"第"<<i+1<<"个人:"<<endl;
cout<<"总成绩:"<<sum<<endl;
cout<<"平均成绩:"<<sum/3<<endl;
}
}
using namespace std;
void chengji(const float s[5][3] );
int main( ) {
float s[5][3];
int i,j;
for (i=0;i<5;i++)
for (j=0;j<3;j++)
cin>>s[i][j];
chengji(s);
return 0;
}
void chengji(const float s[5][3])
{
int i,j;
float sum=0;
for(i=0;i<5;i++)
{for(j=0;j<3;j++)
sum=sum+s[i][j];
cout<<"第"<<i+1<<"个人:"<<endl;
cout<<"总成绩:"<<sum<<endl;
cout<<"平均成绩:"<<sum/3<<endl;
}
}
- 统计成绩
- 成绩统计
- 成绩统计
- 统计成绩
- 成绩统计
- 成绩统计
- 成绩统计
- 成绩统计
- 成绩统计、工资统计、最大公约数
- 模拟player成绩统计
- 学生成绩统计器
- FZU 1587 成绩统计
- 学生成绩统计
- 统计成绩SQL语句
- 学生成绩统计
- 学生成绩统计
- 学生成绩统计
- 学生成绩统计
- redis数据结构图
- 2013第一周上级任务项目1(字符串的连接)
- linux shell 如何拷贝或者移动文件夹中的内容到另一个文件夹
- 值得参考的几本算法书
- Nosql之MongoDB的下载安装和服务配置
- 成绩统计
- GRUB2
- 概述:通用操作(Overview:Common Operations)
- 黑马程序员---张老师高新技术之java5新特性2
- APMServ5.2.6和IIS共用80端口的调试实录
- Android应用开发之使用Socket进行大文件断点上传续传
- 2013.3.6留下痕迹
- redis学习笔记
- poj1860