Write program in java to accept a choice from user and print the sum of series according to the choice:
i. In case of Choice 1: S = 2 + 5 + 8 + 11 + …..+n
ii. In case of choice 2: S = x2 + x4 + x6 + …… + xn
Answers
Answered by
1
Answer:
ii. In case of choice 2: S = x2 + x4 + x6 + …… + xn
Explanation:
ii. In case of choice 2: S = x2 + x4 + x6 + …… + xn
Similar questions