using System;
using System.Linq;
namespace ConsoleApp // name of project
{
class ArrayNumbers // class name
{
static void Main(string[] args)
{
int[] myNumbers = { 3, 3, 1, 5, 2, 4, 1 };
int min = myNumbers.Min();
int max = myNumbers.Max();
int sum = myNumbers.Sum();
Console.WriteLine("The Smallest Value is {0}",min);
Console.WriteLine("The Largest Value is {0}", max);
Console.WriteLine("The Sum of all array Elements is {0}", sum);
Console.ReadKey();
}
}
}
