using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ConsoleApplication7
{
class Program
{
static void Main(string[] args)
{
int[] a = new int[10];
for (int i = 0; i < a.Length; i++)
a[i] = int.Parse(Console.ReadLine());
for (int i = 0; i < a.Length; i++)
{
if (a[0] < a[i]) a[0] = a[i];
if (a[0] > a[i]) a[1] = a[i];
}
Console.WriteLine("最大值是:{0}", a[0]);
Console.WriteLine("最小值是:{0}", a[1]);
}
}
}
程序二(调用其他函数):
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ConsoleApplication7
{
class Program
{
public void qiuji