(a) Write a program that computes the sum of following series: $x - x…

Previous year question for Computer Programming.

Question

(a) Write a program that computes the sum of following series:

$x - x^3/3! + x^5/5! - x^7/7! + .........$ to n terms.

The value of 'x' and 'n' is to be given by the user.(make use of functions) (08)

(b) Write a recursive program to solve Towers of Hanoi problem. (06)

(c) Write a program in 'C' to remove all duplicate elements from an array.. (06)

Related pages

More PYQs on Recursion

Open on CachedInfo