using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;namespace ConsoleApplication1
{
class Program
{
static void Main(string[] args)
{
int[] a={0,2,3,4,5};
int max = a[0];
for (int i = 1; a.Length < 5; i++)
{
if (a[i] > max)
{
max = a[i];
}
}
Console.WriteLine(max);
Console.ReadLine();
}
}
}
using System.Collections.Generic;
using System.Linq;
using System.Text;namespace ConsoleApplication1
{
class Program
{
static void Main(string[] args)
{
int[] a={0,2,3,4,5};
int max = a[0];
for (int i = 1; a.Length < 5; i++)
{
if (a[i] > max)
{
max = a[i];
}
}
Console.WriteLine(max);
Console.ReadLine();
}
}
}
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货