/* (Start of Program head Note) * Copyright and version Statement of the program (c) 2011, the Computer College of Yantai University * All rights reserved. * File Name: * Author: Shangpeng * Date of Completion: September 16, 2012 * Version number: 001 * for tasks
And the description of the solution method * Input Description: * Problem Description: Design a program, input 10 number into the array, to find the maximum, minimum and average value.
* Program Output: * program Head of the annotation end * * using System;
Using System.Collections.Generic;
Using System.Linq;
Using System.Text; Namespace ConsoleApplication3 {class Program {static void Main (string[] args) {int
[]num = new int [10];
Console.WriteLine ("Please enter 10 number:");
for (int i = 0; i < i++) {string s = Console.ReadLine (); int x = Int.
Parse (s);
Num[i] = x; }/* for (int n =0;n<10;n++) {Console.
WriteLine (Num[n]);
}*/int max = num[0];
for (int n = 1; n < n++) {if (Max < num[n]) max = Num[n];
Console.WriteLine ("Max is {0}", max);
int min = num[0];
for (int a = 1; a < a++) {if (min > num[a]) min = Num[a];
} Console.WriteLine ("Min is {0}", min);
int all = 0;
for (int h = 0; h < h++) {all = all+ num[h];
Double average = ALL/10;
Console.WriteLine ("Average is {0}", average);
Console.readkey (FALSE);
}
}
}