# calculate the sum of 1+2+...+300 s=0 for(j in 1:300) s=s+j s