b = [3  8  9  4  7  5];
sum1 = 0;
for k = 1:4
  sum1 = sum1+b(k);
end
sum1
