Using switch statement,write a menu driven program for the following:(a)to find and display the sum of the series
S=x1-x2+x3-x4+x5-......-x20,where x=2
(b)to display the series:-
1,11,111,1111,11111
For an incorrect option an appropriate error message should be displayed
Answers
Answered by
53
....
...
.... ..
....
Hope it helps so.
Note that ' SOP' means System.out.println
Attachments:
Answered by
6
Explanation:
it was helpful.................
Similar questions