static void Task1()
{
int[] array1 = new int[10];
// Console.WriteLine("依次输入十个数(提示:用逗号隔开):");
//string input = Console.ReadLine();
//string[] inputnew = input.Split(',');
//for (int i = 0; i < 10; i++)
//{
// array1[i] = Convert.ToInt32(inputnew[i]);
//}
for (int i = 0; i < 10; i++)
{
array1[i] = Convert.ToInt32(Console.ReadLine());
}
int max = array1[0];
int min = array1[0];
int countMax = 0;
int countMin = 0;
for (int i = 0; i < 10; i++)
{