用C语言,输入一个班10个学生的成绩,统计各分数段[0,60),[60,70...答:这个是你要的程序,vc6.0通过调试运行了。include<stdio.h> void main(){ int no=1,count[5]={0,0,0,0,0};float score;for(;no<=10;no++){ printf("input a score:\n");scanf("%f",&score);if(score>=0&&score<60)count[0]++;if(score>=60&&score<70)count[1]++;if(...
...分数序列 2/1,3/2,5/3,8/5,13/8,21/13…的前n项 之和。C语言中...答:float suma(int n){ float ft =0;int i,at,bt;int a1=2,b1=1,a2=3,b2=2;if(n <2){ printf("输入数小于2!");return ft;} for(i=2;i<=n;i++){ ft = a1/b1 + a2/b2;at = a1 + a2;bt = b1 + b2;a1 = a2;b1 = b2;a2 = at;b2 = bt;} return ft;} ...
c语言,输入50个学生的成绩,按分数段统a>90,b:80~89,c:70~79,d:60~69...答:include<stdio.h>int i,sum,temp,a,b,c,d;int main(){ for(i=1;i<=50;i++) { scanf("%d",&temp); sum=sum+temp; if (temp>=90) a++; else if (temp>=80) b++; else if (temp>=70) c++; else if (temp>=60) d++; } printf("a,b...