Run ❯
×
Change Orientation
Change Theme, Dark/Light
using System; using System.Linq; namespace MyApplication { class Program { static void Main(string[] args) { int[] myNumbers = {5, 1, 8, 9}; Console.WriteLine(myNumbers.Max()); // largest value Console.WriteLine(myNumbers.Min()); // smallest value Console.WriteLine(myNumbers.Sum()); // sum of myNumbers } } }
9
1
23