Annexure-1
List of practical (Fundamentals of C Programming -22CS002)
S.No. Practical Lab No.
1. Write a Program to show the use to input (Scanf)/output (Printf) 1
statements and block structure of C-program by highlighting the
features of "stdio.h".
2. Write a program to add two numbers and display the sum. 1
3. Write a program to calculate the area and the circumference of a 2
circle by using radius as the input provided by the user.
4. Write a Program to perform addition, subtraction, division and 2
multiplication of two numbers given as input by the user.
5. Write a program to evaluate each of the following equations. 3
(i) V = u + at. (ii) S = ut+1/2at2 (iii) T=2*a+√b+9c (iv) H=√b2+p2
6. Write a program to swap two variable: 3
a) By using temporary variable.
b) Without using temporary variable
7. Write a Program to find the greatest among three numbers using: 4
Conditional Operator
If-Else statement
8. Write the following programs using switch case statement: 4
To check that an input alphabet is vowel or consonant
To check whether a number is positive, negative or zero
Lab Evaluation-I
9. Write a program using while loop to print the sum of first n natural 5
numbers.
10. Write a program to check a number is Armstrong or not using For 5
loop.
11. Write the program to count the digits in a number and then print the 6
reverse of the number also.
12. Write a program to generate the Fibonacci series. 6
13. Write a program to print the following patterns: 7
a)
*
**
***
****
*****
******
b)
*
**
***
****
*****
******
14. Write the program to print the following pattern: 7
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
15. Write a program to check that the given number is prime, Armstrong 8
or perfect using the concept of functions.
16. Write a program to calculate the area and circumference of a circle 8
using functions.
17. Write a program to swap two variables using the concept of call by 9
value and call by reference.
18. Write a program to perform the following operations on 1D-Array: 9
Insert
Update
Delete
Display
Search
19. Write a program to calculate the sum of array elements by passing it 10
to a function.
20. Write a program to show the use of passing pointer as arguments to 10
the functions.
Lab Evaluation-II
21. Write a program matrix multiplication using the concept of 2D array 11
22. Write a program to transpose a given matrix. 11
23. Write a program to find the factorial of a number by using the 12
concept of recursion.
24. Write a program to display the sum of the digits of a number by using 12
the concept of recursion.