Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Linq;
- public class Program
- {
- public static void Main()
- {
- int[] numbers = Console.ReadLine().Split('#').Select(n => int.Parse(n)).Select(n => 10 * n).ToArray();
- int maxNum = numbers.Max();
- int minNum = numbers.Min();
- int sum = numbers.Sum();
- double avg = numbers.Average();
- Console.WriteLine(string.Join("\n", numbers));
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement