C#数组的应用
来源:互联网 发布:机房网络交换机回收 编辑:程序博客网 时间:2024/06/06 19:31
using System;using System.Collections.Generic;using System.Linq;using System.Text;namespace ConsoleApplication1{ class Program { static void Main(string[] args) { int[,] stu=new int[5,4]{ {70,80,90,87}, {78,79,89,90}, {67,89,98,80}, {89,78,66,88}, {89,78,68,88} }; double[] a = new double[5]{0,0,0,0,0}; for (int i = 0; i < 5; i++) { for (int j = 0; j < 4; j++) { a[i] += stu[i,j]; } a[i] = a[i] / 4; Console.WriteLine("第"+i+"个学生的平均成绩为:"+a[i]); } Console.ReadKey(); } }}
0 0
- C# 数组的应用
- c#数组的应用
- C#数组的应用
- C#中的多维数组的应用
- C#控制台 应用rank函数知道数组几维的
- 数组-数组的应用
- C#数组-数组的初始化
- C# 自定义数据类型 数组应用 读取XML
- C# 自定义数据类型 数组应用 读取XML
- C#的数组
- C#的数组
- C#的数组
- C#的对象数组
- C#的数组
- C# 数组的复制
- C# 数组的使用
- C# 数组的拷贝
- c#数组的写法
- 代码整洁之道--有意义的命名
- 输入任意两个整数,求两者的商。使用异常处理机制捕获零除异常和参数格式异常
- PHP+ajax
- AFNetWorking 解决解析出来的数据为null
- redis.conf 配置说明
- C#数组的应用
- Python 把Excel文件导出为Json文件格式
- 记住linux terminal下的快捷键,提高操作效率!
- python正则表达式学习
- 选择问题
- UVA272 TEX Quotes
- Selenium学习13--表格定位
- redis.conf配置说明
- 201312-1-出现次数最多的数