%use for loop for k=1:1:10 s=5*k^3 end