Calculating the sum of numbers in a user defined range.

WeiJie Lim

Ranch Hand

Posts: 92

posted 3 years ago

I have the error of " not a statement " for the line in which I applied the formula for summation. The formula given is (n-m+1)(n+m) /2 , where m is the starting number and n is the last number.