作业帮 > 综合 > 作业

用c#程序设计,输入一个班级所有学生的成绩,统计各个等级(优、良、中、及格、不及格)的人数并输出

来源:学生作业帮 编辑:作业帮 分类:综合作业 时间:2024/05/22 03:52:02
用c#程序设计,输入一个班级所有学生的成绩,统计各个等级(优、良、中、及格、不及格)的人数并输出
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ConsoleApplication1
{
class Program
{
static void Main(string[] args)
{
int[] score=new int[10] ;
int i , a , b , c , d , e ;
a = b = c = d = e = 0 ;
Console.WriteLine("请输入10名学生的成绩 " );
for (i = 0; i < 10; i++)
score[i] = Convert.ToInt32(Console.ReadLine());
for(i = 0 ; i
再问: 运行有问题的
再答: 没有啊!我在vc2008中运行可以呀!是运行控制台程序