PROGRAMMING AND PROBLEM SOLVING THROUGH ‘C’ LANGUAGE LAB
Course Code Credit Units Semester
BCIH 124 01 1
1. Write a Program to find the sum of first n natural numbers.
2. Write a program to check whether the number is even or odd.
3. Write a program to find largest of three numbers.
4. Write a program to swap the values of two given variables.
5. Write a program to find the square of a given number.
6. Write a program to compute the sum of squares of n natural numbers.
7. Write a program to reverse a given number and also calculate the number of digits in the number.
8. Write a program to calculate the sum of digits of a given number.
9. Write a program to calculate the factorial of a given positive number.
10. Write a program to generate fibonaaci series upto n terms.
11. Write a program to find the GCD and LCM of two given positive numbers.
12. Write a C program to check whether a number is an Armstrong number.
13. Write a C program to find the power of a number.
14. Write a C program to find the maximum/minimum number in a given array.
15. Write a C program to search a number in an array using linear search.
16. Write a C program to sort a given array using Bubble sort.
17. Write a C program to add, subtract and multiply two m by n matrices.
18. Write a C program to detect the occurrence of a character in a given string.
19. Write a C program to count the number of characters in a given string.
20. Write a C program to copy the contents of one string to another.
21. Write a C program to determine whether the entered character string is palindrome or not.
22. Write a C program to enter the marks, address of several students and prepare the mark sheet of each
student. Use structures.
23. Write a C program to calculate net salary / printing of salary statement of an employee. Use Structures.
24. Write a C program to calculate the factorial of a number using recursion.
Examination Scheme:
IA EE
A PR LR V PR V
5 15 15 15 25 25
Note: IA –Internal Assessment, EE- External Exam, PR- Performance, LR – Lab Record, V – Viva.