Computer Science, asked by aadi27082005, 19 hours ago

Using switch statement, write a menu-driven program in Java for the following:
i. To find the sum of the following series:
Sum = a + a3 + a5 + a7 + ---------- to an
ii. To display the first ten terms of the given series:
0,3,8,15, …..

Answers

Answered by aayushupadhyay46
0

Answer:

(a) To print the series:

0, 3, 8, 15, 24, ………… to n terms. (value of 'n' is to be an input by the user)

(b) To find the sum of the series:

S = (1/2) + (3/4) + (5/6) + (7/8) + ……….. + (19/20)

Similar questions