2 of 2 deleted 21 characters in body

Julia, 29 27 bytes

x%y=prod(x)÷cumprod(x)⋅y

Try it online!