fork(9) download
  1. using System;
  2. using System.Linq;
  3.  
  4. public class Test
  5. {
  6. public static void Main()
  7. {
  8. float[] arr = { 0, 0.1f, 0, 0.1f, 0, 0.2f };
  9. var MinVal = arr.Where(f => f > 0).Min();
  10. Console.WriteLine(MinVal);
  11. }
  12. }
Success #stdin #stdout 0.04s 33936KB
stdin
Standard input is empty
stdout
0.1