Annexure-II
List of practical (Fundamentals of C Programming -24CSE0107)
S.No. Practical CLO Level
1. Install C compiler (GCC/Code::Blocks), set up IDE, compile and run CLO01
the first "Hello, World!" program.
2. Write a Program to show the use to input (Scanf)/output (Printf) CLO01
statements and block structure of C-program by highlighting the
features of "stdio.h".
3. Write a program to add two numbers and display the sum. CLO-02
4. Write a program to calculate the area and the circumference of a CLO-02
circle by using radius as the input provided by the user.
5. Write a Program to perform addition, subtraction, division and CLO-02
multiplication of two numbers given as input by the user.
6. Write a program to evaluate each of the following equations. CLO-02
(i) V = u + at. (ii) S = ut+1/2at2 (iii) T=2*a+√b+9c (iv) H=√b2+p2
7. Write a program to swap two variables: CLO-02
a) By using temporary variable.
b) Without using temporary variable
8. Write a Program to find the greatest among three numbers using: CLO-03
Conditional Operator
If-Else statement
9. Write the following programs using switch case statement: CLO=03
To check that an input alphabet is vowel or consonant
To check whether a number is positive, negative or zero
10. Write a program using while loop to print the sum of first n natural CLO-03
numbers.
11. Write a program to check a number is Armstrong or not using For CLO-03
loop.
12. Write the program to count the digits in a number and then print the CLO-03
reverse of the number also.
13. Write a program to generate the Fibonacci series. CLO-03
14. Write a program to print the following patterns: CLO-03
a)
*
**
***
****
*****
******
b)
*
**
***
****
*****
******
15. Write the program to print the following pattern: CLO-03
1 2 3 4 5 6
2 4 6 8 10 12
3 6 9 12 15 18
4 8 12 16 20 24
5 10 15 20 25 30
6 12 18 24 30 36
16. Write a program to check that the given number is prime, Armstrong CLO-03
or perfect using the concept of functions.
17. Write a program to calculate the area and circumference of a circle CLO-04
using functions.
18. Write a program to swap two variables using the concept of call by CLO-04
value and call by reference.
19. Write a program to perform the following operations on 1D-Array: CLO-05
Insert
Update
Delete
Display
Search
20. Write a program to calculate the sum of array elements by passing it CLO-04
to a function.
21. Write a program to show the use of passing pointer as arguments to CLO-04
the functions.
22. Write a program matrix multiplication using the concept of 2D array CLO-05
23. Write a program to transpose a given matrix. CLO-05
24. Write a program to find the factorial of a number by using the CLO-05
concept of recursion.
25. Write a menu driven C program to show the use of in-built string CLO-05
functions like strlen, strcat, strcpy, strcmp, strrev etc.
26. Write a Program in C to display the total number of appearances of a CLO-05
substring provided as input by the user in a given string.
27. Write a program to display the sum of the digits of a number by using CLO-05
the concept of recursion.
28. Write a C program to add two distances in inch & feet using the CLO-05
concept of structures.
29. Write a C program to add two complex numbers using the concept of CLO-05
structures in C.
30. Write a program in C to store the information of five employees CLO-05
using both concepts i.e. array of structure and array within structure.
31. Write a Program in C to find and replace a specific string in a file and CLO-06
also display the total number of appearances of that string.