第三章第44题
来源:互联网 发布:sql bigdecimal 编辑:程序博客网 时间:2024/05/22 03:24
#include<stdio.h>
int fun(int score[][3],int num)
{
int i,j,k,c,n=0;
for(i=0;i<num;i++)
{
k=0;
c=1;
for(j=0;j<3;j++)
{
if(score[i][j]<70)
c=0;
if(score[i][j]>85)
k++;
}
if(k>=1&&c!=0)
n++;
}
printf("有%d个人符合要求\n",n);
return n;
}
int main()
{
int a, score[10][3];
while(1)
{
printf("请输入学生人数:\n");
scanf("%d",&a);
printf("请输入学生三科成绩:\n");
for(int i=0;i<a;i++)
{
for(int j=0;j<3;j++)
scanf("%d",&score[i][j]);
}
fun(score,a);
}
return 0;
}
0 0
- 第三章第44题
- 第三章第44题
- 第三章第44题
- !(错误)第三章第44题
- 第三章第44题判断成绩
- 124页第44题第三章
- 第三章第9题
- 第三章第8题
- 第三章第11题
- 第三章第9题
- 第三章 第3题
- 第三章第12题
- 第三章 第4题
- 第三章 第5题
- 第三章 第8题
- 第三章 第9题
- 第三章 第10题
- 第三章 第11题
- 输出1~N之间的所有素数
- MVC设计模式
- JAVA基础——使用DOM4J 解析xml
- 通过IP直接访问tomcat下的war包文件夹
- bat文件语法
- 第三章第44题
- phpstorm
- oracle的TM锁、TX锁
- Android视图背景及图片透明效果(用颜色表示)
- 进程控制 [fork() exec() wait() waitpid()]
- Codeforces Round #306 (Div. 2)
- POJ 3169-Layout(差分约束系统)
- iPad软件界面设计基本规范
- android app中调用其他应用程序