array[] numbers = new array[2000]
public double[] RemoveZeros(double[] source) { return source.Where(i => i != 0).ToArray(); }
System.Collections.Generic
dim a as integer=0 dim str as string while a<array.length> str=array[a] if str=0 then array.delete(a) end if a=a+1 end while</array.length>
int[] a = { 1, 2, 3, 0, 7, 0 }; a = a.Where(T => T != 0).ToArray();
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)