CPE102 – Homework Questions Part 2 (Solution)

$ 20.99
Category:

Description

1. Write C code that will read the two sides of a rectangle and calculate its area and perimeter.
2. Write C code to find all the roots of a quadratic equation ax2+bx+c=0.
3. Print Hello World 10 times
4. Write C code to find the sum of the first 50 natural numbers.
5. Write C code to calculate 24.
6. Write C code to find LCM of two numbers.
7. Write C code to print all Prime numbers between 1 to n.
8. Write C code to find sum of all prime numbers between 1 to n.
9. Write C code to check whether a number is Armstrong number or not.
10. Write C code to print all Armstrong numbers between 1 to n.
11. Write C code to check whether a number is Perfect number or not.
12. Write C code to print all Perfect numbers between 1 to n.
13. Write C code to check whether a number is Strong number or not.
14. Write C code to print all Strong numbers between 1 to n.
15. Write C code to check Whether a Number is Palindrome or Not
16. Write C code to find the sum of the series [ 1-X^2/2!+X^4/4!- ………].
17. Write C code to display the n terms of harmonic series and their sum. (1 + 1/2 + 1/3 + 1/4 + 1/5 … 1/n terms)
18. Write C code to print the Floyd’s Triangle.
1
01
101
0101
10101
19. Write C code to display the sum of the series [ 1+x+x^2/2!+x^3/3!+….].
20. Write C code to find the sum of the series [ x – x^3 + x^5 + ……].
21. Write C code to find the sum of the series 1 +11 + 111 + 1111 + .. n terms
22. Write C code to find the number and sum of all integer between 100 and 200 which are divisible by 9.
23. Write C code to convert a decimal number into binary without using an array.
24. Write C code to convert a binary number into a decimal number without using array, function and while loop.
25. Write C code to print Pascal triangle upto n rows.

Reviews

There are no reviews yet.

Be the first to review “CPE102 – Homework Questions Part 2 (Solution)”

Your email address will not be published. Required fields are marked *