Write a menu driven program to perform the following: (Use switch-case statement)
(a)
To input a word from the user and print it in the following pattern:
(b)
S
52
3
To find the sum of the series givenbelow:
S = 1 + + + El up to n terms (Where x and n are to be inputted from the user)
2! 3!
Note: ! denotes the factorial of a number which is equal to the product of the numbers
starting from 1 till that number. Example: 5! - 1 x 2 x 3 x 4x5]
Attachments:
Answers
Answered by
0
Answer:
Write a menu driven program to perform the following: (Use switch-case statement)
(a)
To input a word from the user and print it in the following pattern:
(b)
S
52
3
To find the sum of the series givenbelow:
S = 1 + + + El up to n terms (Where x and n are to be inputted from the user)
2! 3!
Note: ! denotes the factorial of a number which is equal to the product of the numbers
starting from 1 till that number. Example: 5! - 1 x 2 x 3 x 4x5]
Similar questions