Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- namespace Lists
- {
- class Program
- {
- static void Main(string[] args)
- {
- int[] numbers = Console.ReadLine()
- .Split(' ')
- .Select(el => int.Parse(el))
- .ToArray();
- Console.WriteLine($"Min = {numbers.Min()}");
- Console.WriteLine($"Max = {numbers.Max()}");
- Console.WriteLine($"Sum = {numbers.Sum()}");
- Console.WriteLine($"Average = {numbers.Average():F1}");
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement