Computer Science, asked by adarshrajeevankp, 4 months ago

write a program to find the sum of the following series
1) s= (a+1) + (a+2) + (a+3)+......... (a+n)
2) s= (1/a) + (2/a^2) + (3/a^3) .....to n
3)s= a-a^3 + a^5-a^7+ ...... to n
FIND IT IN JAVA PROGRAM​

Answers

Answered by abhinabchoudhury29
2

Explanation:

First program i.e No.1

1) s= (a+1) + (a+2) + (a+3)+......... (a+n)

Second program i.e No.2

2) s= (1/a) + (2/a^2) + (3/a^3) .....to n

Third program i.e No.3

3)s= a-a^3 + a^5-a^7+ ...... to n

Attachments:
Similar questions