Advertisement
IanosStefanCristian

Find the Smallest and Biggest Numbers

Mar 9th, 2021
27
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.18 KB | None | 0 0
  1. using System;
  2. using System.Linq;
  3. public class Program
  4. {
  5. public static double[] FindMinMax(double[] values)
  6. {
  7. return new[] {values.Min(), values.Max()};
  8. }
  9. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement