algorithm to compute the sum of the first n elements
Answers
Answered by
0
Sum of first 'n' elements Algorithm is here
n/2(2a+(n-1)d)
or
n/2(a+an)
n/2(2a+(n-1)d)
or
n/2(a+an)
Similar questions