Replace zero from an Integer array

Hi All,

I need to replace zero with next value in array.

ex: {1,2,3,0,0,10,15,0,14,0} ; then result should be {1,2,3,10,10,10,15,14,14,0}

Thanks

  Discussion posts and replies are publicly visible