KEMBAR78
List of Lab Programs | PDF | Matrix (Mathematics) | Mathematical Objects
0% found this document useful (0 votes)
12 views2 pages

List of Lab Programs

The document lists a series of C programming tasks, including calculations, array manipulations, matrix operations, and string handling. Each task specifies a particular function or operation to be implemented in C, such as finding the product of digits, checking for prime numbers, and managing structures for students and books. The tasks cover a wide range of programming concepts suitable for practice and learning.

Uploaded by

aamirulmulk1
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
12 views2 pages

List of Lab Programs

The document lists a series of C programming tasks, including calculations, array manipulations, matrix operations, and string handling. Each task specifies a particular function or operation to be implemented in C, such as finding the product of digits, checking for prime numbers, and managing structures for students and books. The tasks cover a wide range of programming concepts suitable for practice and learning.

Uploaded by

aamirulmulk1
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

1. Write a C program to calculate product of digits of a number.

2. Write a C program to enter a number and print its reverse.

3. Write a C program to check whether a number is a palindrome or not.

4. Write a C program to find HCF (GCD) of two numbers.

5. Write a C program to find LCM of two numbers.

6. Write a C program to check whether a number is prime or not.

7. Write a C program to print all prime numbers between 1 to n.

8. Write a C program to check whether a number is an Armstrong number or not.

9. Write a C program to check whether a number is a Perfect number or not.

10. Write a C program to check whether a number is a Strong number or not.

11. Write a C program to print the Fibonacci series up to n terms.

12. Write a C program to print Pascal triangle up to n rows.

13. Star pattern programs – Write a C program to print the given star patterns.

14. Number pattern programs – Write a C program to print the given number patterns.

15. Find maximum and minimum array elements.

16. Count frequency of each element in the array.

17. Find sum of even numbers in an array.

18. Find sum and average of array elements.

19. Print maximum and minimum array element (duplicate of #15; keep if needed).

20. Search a number in an array.

21. Sort array in ascending order.

22. Count occurrences of numbers in an array.

23. C program to find largest and second largest elements in an array.

24. C program to find second largest and smallest elements of an array.

25. Write a C program to add two matrices.


26. Write a C program to perform scalar matrix multiplication.

27. Write a C program to multiply two matrices.

28. Write a C program to interchange diagonals of a matrix.

29. Write a C program to find the upper triangular matrix.

30. Write a C program to find the lower triangular matrix.

31. Write a C program to find the transpose of a matrix.

32. Student Structure Operations


• Create a structure called Student with members: name, age, and total marks.
• Write a C program to input data for two students, display their information, and
find the average of total marks.

33. Book Structure Management


• Create a structure named Book to store: title, author, and price.
• Write a C program to input details for three books, find the most expensive and
lowest priced books, and display them.

34. Concatenate two strings and print the resultant string.

35. Find the substring of a string.

36. Compare two strings.

37. Write a C program to copy contents from one file to another.

38. Write a C program to count characters, words, and lines in a text file.

39. Write a C program to convert uppercase to lowercase and vice versa in a text file.

You might also like