(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)
- Year: 2018
- Subject: Computer Programming
Related pages
More PYQs on Recursion
- a) Write a recursive function to find the factorial of a number and compare the recursive method to find the factorial of a number with that of an iterative me…
- (a) What is structure ? Write a program to illustrate the concept of structure and how member variables are accessed. (10) (b) Write a program to print Fibonac…