26
Sum = 79*(79+1)/2 = 79*80/2 = 3160
25
5050
41
The sum of -1 and -2 is -3.
3
Sum = 79*(79+1)/2 = 79*80/2 = 3160
3
if (n%2==0) sum=n/2*(n+1); else sum=(n+1)/2*n;
25
87
5050
41
The sum of 2/9 and 1/3 is 5/9
The sum of -1 and -2 is -3.
1+2+3+4.....+100 = 101*50= 5050
The sum of 2/3 and 1/2 is 1 1/6