usingSystem;
usingSystem.Collections.Generic;
usingSystem.Linq;
usingSystem.Text;
usingSystem.Threading.Tasks;
namespaceConsoleApplication1
{
class Program
{
static void Main(string[] args)
{
int[] numbers = new int[10];
Console.WriteLine("Input tennumbers:");
for (int i = 0; i < 10; i++)
numbers[i] =int.Parse(Console.ReadLine());
Console.WriteLine("Output:");
for (int i = 0; i < 10; i++)
Console.WriteLine("{0}", numbers[i]);
Console.WriteLine("Sum:{0}", numbers.Sum());
Console.WriteLine("Average:{0}", numbers.Average());
Console.WriteLine("Min:{0}", numbers.Min());
Console.WriteLine("Max: {0}",numbers.Max());
Console.ReadLine();
}
}
}
Comments
Leave a comment