3 5 7
x x x
1. Write a program to evaluate f(x)= x− + − +… upto 5 decimal precision.
3! 5! 7!
2. Write a program to find the prime numbers between 50 and 5000.
2 3
x x x
3. Write a program to sum the series e x =1+ + + + … ,accurate upto 5 significant digits.
1! 2! 3!
4. Write a program that will read a positive integer and determine its binary equivalent.
1 1 1
5. Write a program to determine the sum of the series for a given value of n 1+ + + …+
2 3 n
1 1 1 1
6. Write a C program to evaluate the sum of the series 1− + − + … ,upto n terms.
2 X 3 3 X 4 4 X 5 5 X6
7. Write a program to print the sum of the series, S= 1+(1+3)+(1+3+5)+(1+3+5+7)+… upto n terms.
8. Write a program to print the area of a triangle, given three side values a, b and c, also print the type of
triangle; if the triangle cannot be formed print a message.
9. Write an algorithm to find the GCD of two numbers.
10. Write a program to check whether a number has more than 5 divisors. If so print those divisors.
[Link] a program to print the leap years between year 1000 to 3000.
12.A square matrix is symmetric if the row elements and column elements are identical. Write a program to
check if the given square matrix A is symmetric or not?
[Link] a program to print the upper and lower triangles of a matrix.
[Link] a program to multiply two matrices A and B which are conformable for multiplication.
[Link] a program to find standard deviation for the given data.
[Link] a program that receives a sorted array of integers and an integer value and inserts the value in its
correct place.
[Link] a program to sort a list of strings alphabetically using a two dimensional character array.
[Link] a program to read a two dimensional array and print the sum of its diagonal elements.
EST 102 Programming in C , Module I Dept. of CSE
Page 1