Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Linq;
- namespace CustomMinFunction
- {
- public class StartUp
- {
- public static void Main()
- {
- var input = Console.ReadLine()
- .Split(new string[] { " " }, StringSplitOptions.RemoveEmptyEntries)
- .Select(int.Parse)
- .ToArray();
- Func<int[], int> findMin = arr => arr.Min();
- int min = findMin(input);
- Console.WriteLine(min);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement