LIST OF PROGRAMS FOR LAB EXTERNAL (COMPUTER PROGRAMMING LAB)
1. Write a C program to perform temperature conversions from Centigrade to Fahrenheit
2. Write a program to take marks of 5 subjects in integers, and find the total, average in float.
3. Write a C program to perform basic calculator operations [+, -, *, /] of two integers a and b
using switch statement.
4. Write a C program to find the factorial of a given number
5. Write a program to find the area of a triangle using Heron's formula.
6. Write a C program to display the greatest of three numbers using a conditional operator
(ternary operator).
7. Write a C program to evaluate the following expressions.
a. A+B*C+(D*E) + F*G
b. A/B*C-B+A*D/3
c. A++ + ++B - --A
d. J= (i++) + (++i)
8. Write a C program to calculate the simple interest and compound interest byreading principal
amount, rate of interest and time.
9. Write a C program to find leap year or not
10. Write a program to find the distance travelled by an object.
11. Write a program that prompts the user to enter an integer and calculates its square root.
12. Write a C program to find the max and min of four numbers.
13. Write a C program to find the roots of a quadratic equation, given its coefficients.
14. Write a C program to read the name of the user, and the number of units consumed and
print out the charges as shown in the sample test cases.
15. Write an C program to check given number is palindrome or not
16. Write a C program to check whether a given element is present in an array of elements using
linear search.
17. Write a C program to find the minimum and maximum in an array of integers.
18. Write a C program to find the length of a given string.
19. Write a C program to reverse the elements an array of integers.
20. Write a program to display the Fibonacci series up to the given number of terms using
recursion process.
21. Write a C Program to find nCr using Factorial recursive function.
22. Write a program to find the lcm (Least Common Multiple) of a given two numbers using
recursion process.
23. Write a program to swap two values by using call by address method.
24. Write a program to reverse the given string without using the library functions.
25. Write a C program to find the multiplication of two matrices of size r x c.
26. Write a C program to eliminate duplicate elements of an array.
27. Write a C program that reads n integer numbers and arrange them in ascending order
using Bubble Sort.
28. Write a C program to find out the total and average marks gained by the students in a section
using array of structures.
29. Write a C program to perform the addition of two matrices each with the size m x n.
30. Write a C program to Copy the contents of one structure variable to another structure
variable.
31. Write a C program to demonstrate the differences between structures and unions.
32. Write a program to find the sum of n elements by allocating memory by using malloc
() function.
33. Write a C program to print the transpose of a matrix using functions.
34. Write a program to read a text content from a file and display on the monitor with the help of
C program.