Function assignments in C language with explanation and Solutions.
1.Write a C program to find the sum of two integers numbers using the function
2. write a program to check whether a given number is prime or not using a function in C.
3. write a program C to find the nth term of the Fibonacci series using a function.
4.Write a program to check whether a number is even or odd using a function.
5. Create a C program to calculate the area of a rectangle using a function.
6. write a program to convert temperature from Celsius to Fahrenheit using the function
7.Develop a program to find the GCD (Greatest Common Divisor) of two numbers using a function.
8.Write a program to find the LCM (Least Common Multiple) of two numbers using a function.
9.Create a program to swap two numbers using a function.
10.Develop a program to calculate the power of a number using a function.
11.Write a program to check if a given year is a leap year using a function.
12.Create a program to print all prime numbers between two given numbers using a function.
13.Develop a program to generate a multiplication table of a given number using a function.
14.Write a program to check if a given number is a palindrome using a function.
15.Create a program to reverse a string using a function.
16.Develop a program to find the length of a string using a function.
17.Write a program to concatenate two strings using a function.
18.Create a program to find the maximum element in an array using a function.
19.Develop a program to find the minimum element in an array using a function.
20.Write a program to calculate the sum of elements in an array using a function.
21.Create a program to search for an element in an array using a function.
22.Develop a program to sort elements in an array in ascending order using a function.
23.Write a program to perform matrix addition using a function.
24.Create a program to calculate the transpose of a matrix using a function.
25.Develop a program to check if a matrix is symmetric using a function.
26.Write a program to perform matrix multiplication using a function.
27.Create a program to find the sum of diagonal elements in a matrix using a function.
28.Develop a program to find the largest sum subarray in an array using a function.
29.Write a program to find the longest increasing subsequence in an array using a function.
30.Create a program to find the median of two sorted arrays using a function.
31.Develop a program to find the majority element in an array using a function.
32.Write a program to find the maximum product subarray in an array using a function.
33.Create a program to find the contiguous subarray with the largest sum (Kadane's algorithm) using a function.