using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace 求最大值
{
class Program
{
static void Main(string[] args)
{
int[] s = new int[11] { 33,10,-1,22,132,56,16,1645,13,0,169};
int max = s[0];
for (int i = 1; i < s.Length; i++)
{
if (s[i]>max)
{
max = s[i];
}
}
Console.WriteLine(max);
Console.ReadKey();
}
}
}
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace 求最大值
{
class Program
{
static void Main(string[] args)
{
int[] s = new int[11] { 33,10,-1,22,132,56,16,1645,13,0,169};
int max = s[0];
for (int i = 1; i < s.Length; i++)
{
if (s[i]>max)
{
max = s[i];
}
}
Console.WriteLine(max);
Console.ReadKey();
}
}
}