c语言统计学生平均成绩以及及格人数
来源:学生作业帮助网 编辑:作业帮 时间:2024/11/06 04:41:35
#include“stdio.h”#defineMAX100voidmain(){intmark[MAX],sum=0,mark=0,j=0,aver=0;printf("请输入学生成绩,输入负数结束
你好!请参考:#includemain(){floatstu[10],sum,aver;inti;sum=0;for(i=0;i再问:你好,请问这个程序有检验过么?再答:我检验了,没问题!
#include#include#includeintfun(intpoint[],intn,inthigh[]){floatave=0;inti,k=0;//初始化k=0即可for(i=0;i
#includeintmain(){charch;inti,x,n=0,s=0;for(i=1;;i++){printf("请输入学生成绩,以空格隔开,以回车结束:\n");scanf
#includeinta[10],i,j=0,k=0;for(i=0;i
Dim a As Double = 0
#include<stdio.h>voidmain(){ intn=0,i,e=0,x=0,d=0,v=0; 
importjava.util.Scanner;publicclassAverage{/***@paramargs*/publicstaticvoidmain(String[]args){//TODO
#include "stdio.h"#define N 10void main(){ int a[N],ave,sum=
#include#defineM6#defineN5floataverage(float*p,intn)/*求平均分的函数*/{floatsum=0.;inti;for(i=0;i
#include#defineMAX10//定义学生人数structstudent//定义学生结构体{charname[15];longnum[10];floatscore[3];floatave;}
#include#defineM4#defineN3voidmain(){floatscore[M],add[N]={0},k[M]={0};inti,j;for(i=0;i
#include<stdio.h>void main(){ int a;//接受输入 &
#include <stdio.h>main(){ double grade[200]; double sum,avg,temp;&nbs
#includeintmain(){\x09inti,A,B,C,D,E,n,s;\x09A=B=C=D=E=0;\x09printf("Entern:");\x09scanf("%d",&n);\x
#include#defineCounts12main(){intscore[Counts]={89,76,78,98,76,56,45,67,56,89,65,78};intTotalScores,
#includeintmain(){inti,n=0;floats[10];for(i=0;iscanf("%f",&s[i]);if(s[i]n++;}printf("及格人数:%d,及格率:%d\
#includevoidmain(){inti,arr[10];intsum=0;intcount=0;doubleavg=0;for(i=0;i!=10;++i){scanf("%d
呵呵,二楼的写法是基本正确应该是=IF(A1