Login


Lost your password?

Don't have an account ?
Register (It's FREE) ×
  


Shop
Java All : Series Printing


Exam Paper Problems

Series problems #7260

( As In Exam - ICSE2017 )

Using switch statement, write a menu driven program for the following:

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.



Exam Paper Problems:1 
Back