sum=0;for i=1:2:99sum=sum+i;endsum
sum=0;for i=1:50 sum=sum+(2*i-1);endsum
sum=0;for i=1:50 sum=2*i-1+sum;endanswer=sum/50
a=1:2:99;x=sum(a)