Write a Java program to find the sum of the following series:
(a) Sum = 1 – 3 + 5 – 7 + …………………….. - 19
x x x x
(b) Sum = 3 + 6 + 9 + …………….. + 30
(Value of x needs to be inputted by user.)
Answers
Answered by
4
Answer:
The solution for your questions is attached above.
Explanation:
hope it helps u.
Attachments:
Similar questions