Formula Based C Codes
Formula Based C Codes
C Programs on Arrays
1. Find max & min array elements
2. Count frequency of each element
3. Decimal into Octal conversion
4. Armstrong number in an array
5. Separate out +ve, -ve and 0s
6. Reverse the array elements
7. Sum of 10 integers
8. Compare sum of given elements
9. Sum of even numbers in array
10. Print odd numbers in array
11. Find sum and average
12. Print max & min array element
13. Search a number in an array
14. Sort array in ascending order
15. Count occurrences of numbers
16. Store & display prime number
17. Sort array in descending order
18. Reverse an array
19. Print largest sum
20. Print two dimensional array
21. Count zeroes in a matrix
22. Sum of two matrices
23. Sum of all elements in matrix
24. Sum of diagonal elements
25. Find transpose of matrix
26. Sum of middle row & column
27. Find product of matrices
28. Find difference of two matrices