Problem Statement - Series problems
Using switch statement, write a menu driven program for the following:
(i) To find and display the sum of the series given below:
S = x1 – x2 + x3 – x4 + x5 … – x20, where x = 2.
(where x = 2)
(ii) To display the following series:
1 11 111 1111 11111
For an incorrect option, an appropriate error message should be displayed.
CSKC| Created: 15-Apr-2019 | Updated: 28-Nov-2019|ICSE2017