求数组中最大的数的值:
1、数组的max函数:
![](https://i-blog.csdnimg.cn/blog_migrate/8f900a89c6347c561fdf2122f13be562.gif)
![](https://i-blog.csdnimg.cn/blog_migrate/961ddebeb323a10fe0623af514929fc1.gif)
1 class Program 2 { 3 static void Main(string[] args) 4 { 5 int[] array = { 1,3,5,2,4,6,7,9,0,8}; 6 int max= GetMax(array); 7 Console.WriteLine("数组中最大的值是{0}",max); 8 Console.ReadKey(); 9 } 10 private
求数组中最大的数的值:
1、数组的max函数:
1 class Program 2 { 3 static void Main(string[] args) 4 { 5 int[] array = { 1,3,5,2,4,6,7,9,0,8}; 6 int max= GetMax(array); 7 Console.WriteLine("数组中最大的值是{0}",max); 8 Console.ReadKey(); 9 } 10 private