输入十个学生的分数,统计高于60分的学生人数
来源:学生作业帮助网 编辑:作业帮 时间:2024/11/19 00:07:17
#include“stdio.h”#defineMAX100voidmain(){intmark[MAX],sum=0,mark=0,j=0,aver=0;printf("请输入学生成绩,输入负数结束
已经运行确认了:#includemain(){intavg,i,sum=0,a[11];printf("请输入十个整数\n");for(i=1;i
#includevoidmain(void){intA[10],max,min,num=0,all=0;//数组,最大数,最小数,大于平均数的个数,所有数之和doubleave=0.0;//平均数pr
#includeintmain(){inta[25];inti;for(i=0;i
#includevoidmain(){inta[10];inti,n=0;floatsum=0;for(i=0;i
Dim a As Double = 0
#include "stdio.h"#define N 10void main(){ int a[N],ave,sum=
兄弟,啥语言嘛?不说语言单说要求有啥用啊?再问:c语言再答:#include#includestructstu{intgrade1,grade2,grade3,count,average;stu*ne
#includevoidmain(void){inti;floatscore,max,min,sum,aver;scanf("%f",&score);max=min=sum=score;for(i=1
vara,n,i:longint;beginfori:=1to10dobeginread(a);ifa>0thenn:=n+1;end;write(n);end.
import java.util.Scanner;public class ex4_9{ public static 
#includevoidmain(){intn=0;floatx,sum=0,aver=0;scanf("%f",&x);n++;while(x!=-1){sum+=x;n++;scanf("%f",
#includevoidmain(){intData[5][7];for(inti=0;i
#includeintmain(){\x09inti,A,B,C,D,E,n,s;\x09A=B=C=D=E=0;\x09printf("Entern:");\x09scanf("%d",&n);\x
#includevoidmain(){inti,n,count=0;for(i=0;i=0)count++;}printf("正数的个数为:%d\n",count);printf("负数
#includevoidmain(){inti,arr[10];intsum=0;intcount=0;doubleavg=0;for(i=0;i!=10;++i){scanf("%d
DCOUNT请参阅返回数据库或列表的列中满足指定条件并且包含数字的单元格个数.参数field为可选项,如果省略,函数DCOUNT返回数据库中满足条件criteria的所有记录数.语法DCOUNT(da
#includevoidmain(){intn,i,a,b,c,d,e;floats,sum=0,ave;a=b=c=d=e=0;printf("请输入学生个数:");scanf("%d",&n);p
#includefloataverage(floatar[]){inti;floatq,m;m=0;for(i=0;i