Write a java programme to find the sum of series:
S=1/2-2/3+3/4-4/5.....-10/11
plzzzz try to answer fast if u know the full answer
it is urgent
class 10 icse board 2020-2021
Answers
Answered by
1
Input : n = 10
Output : 4290
1*2*3 + 2*3*4 + 3*4*5 + 4*5*6 + 5*6*7 + 6*7*8 +
7*8*9 + 8*9*10 + 9*10*11 + 10*11*12
= 6 + 24 + 60 + 120 + 210 + 336 + 504 +
720 + 990 + 1320
= 4290
Input : n = 7
Output : 1260
Similar questions
India Languages,
1 month ago
Math,
3 months ago
Social Sciences,
3 months ago
Math,
9 months ago
English,
9 months ago