Write a menu-driven program in java to perform the following (using switch case):
(i) to print the value of S where
S = 1/1! + (1 + 2)/ (1! + 2! ) + (1 + 2 + 3) / (1! + 2! + 3! ) + …….… up to n terms.
(ii) to print the value of S where
S = 1n + 2(n-1) + ...…………………………….……….. + (n-1)2 + n1
Answers
Answered by
0
Answer:
Hii
Explanation:
Please mark me as brainlist than I will tell you the answer
Please mark me as brainlist
Similar questions