x=[2 3 4 5 -2 -3 5 0];y = ~mod(x,2);x(y) = x(y) * 5%x(rem(x,2)==0) = 5*x(rem(x,2)==0)
Standard input is empty
x = 10 3 20 5 -10 -3 5 0
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!