The document contains 10 programs written in C language with their purpose and code. Program 1 determines the sum of odd and even numbers. Program 2 counts the number of positive, negative and zero numbers in a list. Program 3 performs linear search to find a given number. Program 4 performs binary search. Program 5 performs matrix addition. Program 6 performs matrix subtraction. Program 7 swaps two arrays. Program 8 performs matrix multiplication. Program 9 finds the sum of diagonal elements in a matrix. Program 10 is a sample output for program 9.
The document contains 10 programs written in C language with their purpose and code. Program 1 determines the sum of odd and even numbers. Program 2 counts the number of positive, negative and zero numbers in a list. Program 3 performs linear search to find a given number. Program 4 performs binary search. Program 5 performs matrix addition. Program 6 performs matrix subtraction. Program 7 swaps two arrays. Program 8 performs matrix multiplication. Program 9 finds the sum of diagonal elements in a matrix. Program 10 is a sample output for program 9.
The document contains 10 programs written in C language with their purpose and code. Program 1 determines the sum of odd and even numbers. Program 2 counts the number of positive, negative and zero numbers in a list. Program 3 performs linear search to find a given number. Program 4 performs binary search. Program 5 performs matrix addition. Program 6 performs matrix subtraction. Program 7 swaps two arrays. Program 8 performs matrix multiplication. Program 9 finds the sum of diagonal elements in a matrix. Program 10 is a sample output for program 9.
The document contains 10 programs written in C language with their purpose and code. Program 1 determines the sum of odd and even numbers. Program 2 counts the number of positive, negative and zero numbers in a list. Program 3 performs linear search to find a given number. Program 4 performs binary search. Program 5 performs matrix addition. Program 6 performs matrix subtraction. Program 7 swaps two arrays. Program 8 performs matrix multiplication. Program 9 finds the sum of diagonal elements in a matrix. Program 10 is a sample output for program 9.