List of experiments to be performed in Introduction to Programming
Using C (CSL 1022)
S.No. List of Programs
1. Write a program to print “Hello World” on the screen
2. Write a program to find sum of the two numbers
3. Write a program to find average of two numbers
4. Write a program to know the number of bytes of data type contains
5. Write a program to display the ASCII code of a variable on the screen
6. Writ a program to determine the area of a circle
7. Write a program to find the area of a square
8. Write a program to find the sum of digits of a 4 digit number
9. Write a program to reverse a 4 digit number
10. Write a program to swap the values of two variables with/without using third variable
11. Write a program to display if a number is even or odd
12. Write a program to display if a number is positive or negative
13. Write a program to display that a person is eligible for voting
14. Write a program to display greatest among two numbers
15. Write a program to display subject of 5 marks & compute percentage and display pass or
fail
16. Write a program to read number between 1-7 & display corresponding day of week
17. Write a program to read marks of five subjects and compute percentage and display grade
of students based on percentage
18. Write a program to check whether the year entered is leap year or not
19. Write a program to print the relation between 2 numbers as equal to, less than or greater
than
20. Write a program to read lower case character and display it in upper case
21. Write a program to convert dollar into rupees
22. Write a program to convert Celsius into Fahrenheit
23. Write a program to swap the values to two variables with the help of temporary variable
24. Write a program to make a calculator
25. Write a program to print “Hello world” 10 times using while loop
26. Write a program to print “Hello world” n times using while loop
27. Write a program to print 1 to 10 on screen
28. Write a program to print 10 to 1 on screen
29. Write a program to print sum of all even numbers between 1 to 100
30. Write a program to print sum of all odd numbers between 1 to n
31. Write a program to print multiplication table of n
32. Write a program to find factorial of a number
33. Write a program to find sum of all numbers between m to n
34. Write a program to read a number and print each digit on separate line
35. Write a program to find the sum of digits of a number
36. Write a program to reverse a number
37. Write a program to find if the number is Palindrome or not
38. Write a program to read +ve numbers from user till user enters 0 & display for each
number whether it is even or odd
39. Write a program to find the reverse of a number
40. Write a program to sort an array of type integer
41. Write a program to insert an element in sorted array at its right place
42. Write a program to delete all the duplicate numbers from the array
43. Write a program to sum the two arrays into another array.
44. Write a program to add two matrix using multi-dimensional arrays
45. Write a program to multiply to matrix using multi-dimensional arrays
46. Write a program to find transpose of a matrix
47. Write a program to print the characters of a string in vertical order
48. Write a program to find the length of a string
49. Write a program to find the frequency of characters in string
50. Write a program to find the total number of vowels in the string
51. Write a program to find the number of vowels, consonants, digits and white space in
string using Switch - case
52. Write a program to concatenate two strings
53. Write a program to find the total number of words in a sentence
54. Write a program to reverse a sentence
55. Write a program to remove all characters in a string except alphabet
56. Write a program to sort elements in different orders in string
57. Write a program to insert a character in a string
58. Write a program to search a character in a string
59. Write a program to delete a character in a string
60. Write a program to insert a word in a string
61. Write a program to find the sum of n natural numbers using function
62. Write a program to calculate factorial of a number using function
63. Write a program to reverse a sentence using function
64. Write a program to calculate power of a number using function
65. Write a program to swap numbers of an array using call by reference
66. Write a program to find largest number in an array using function