function x = summe(n) x=0; for i=1:n x=x+i; end end