List of C Programs

Here is the list of all C programs available in this blog. You can find basic level programs as well as advanced level programs. All of these programs have been categorised below. Click on the buttons inside the tabbed menu to explore those categories.


Basic

  1. Hello, World! program
  2. Addition, Subtraction, Multiplication and Division
  3. Average of two numbers
  4. Convert a character to ASCII value
  5. Convert ASCII value to a character
  6. Find unit digit of a number
  7. Compute quotient and remainder
  8. Swap two numbers without third variable
  9. Swap two numbers using third variable
  10. Swap two numbers using X-OR
  11. Fahrenheit to Centigrade conversion
  12. Centigrade to Fahrenheit conversion
  13. Simple interest
  14. Conversion between Kilograms and Grams
  15. Calculate percentage of a number
  16. Decision making

  17. Check vowel or consonant
  18. Check if a character is a digit
  19. Conversion between uppercase and lowercase letter
  20. Check if a number is positive or negative
  21. Check if a number is even or odd
  22. Find largest among three numbers
  23. Check if a number is a perfect square
  24. Check leap year
  25. Simple calculator
  26. Calculate profit and loss
  27. Roots of quadratic equation
  28. Find the letter grade of a student
  29. Find the age group
  30. Calculate income tax
  31. Display month according to input number
  32. Conversion between 12-hour and 24-hour time format
  33. Loop & Recursion

  34. Print natural numbers from 1 to N
  35. Print natural numbers from 1 to N using Recursion
  36. Sum of first N natural numbers / Sum of series 1 + 2 + 3 + .. + N
  37. Print all numbers in a range
  38. Sum and average of N numbers
  39. Compound interest
  40. Display letters from A to Z
  41. Factorial of a number
  42. Power of a number
  43. Count no of digits
  44. Sum of the digits of an integer
  45. Reverse of a number
  46. Check if a number is palindrome
  47. Count palindrome between intervals
  48. Display N th fibonacci number
  49. Display fibonacci sequence
  50. Display fibonacci sequence upto N
  51. Check a number is a prime or not
  52. Display all prime numbers upto N
  53. Display First N prime numbers
  54. Display prime numbers between interval
  55. Check amstrong number
  56. Find amstrong numbers between interval
  57. Display multiplication table
  58. Check perfect number
  59. Find minimum number of currency notes to make an amount N
  60. Find the average and sum until 0 is entered
  61. Find the value of permutation and combination
  62. Find the frequency of a digit in a number
  63. Array

  64. Find largest element
  65. Find smallest element
  66. Sum of elements
  67. Sum and average of N numbers
  68. Display array in reverse
  69. Rotate an array
  70. Strings

  71. Check if a string is palindrome
  72. Change case of a string
  73. Pattern

  74. Square pattern
  75. Rectangle pattern
  76. Rhombus pattern
  77. Half diamond pattern
  78. Diamond pattern
  79. Right triangle, Half pyramid pattern
  80. Full pyramid pattern
  81. Inverted full pyramid pattern
  82. Snake number pattern
  83. Spiral pattern
  84. Hollow rectangle pattern
  85. Hollow rhombus pattern
  86. Hollow diamond pattern
  87. Hollow pyramid pattern
  88. Floyd's triangle pattern
  89. Pascal's triangle pattern
  90. File Input/Output

  91. Display own source code
  92. Bitwise operation

  93. Check if a number is even or odd
  94. Matrix

  95. Check equality of two matrices
  96. Matrix addition
  97. Matrix subtraction
  98. Matrix multiplication
  99. Check diagonal matrix
  100. Check upper triangular matrix
  101. Check lower triangular matrix
  102. Trace of matrix
  103. Geometry

  104. Calculate the Area, Perimeter and Diagonal of a square
  105. Calculate Area, Perimeter and Diagonal of a Rectangle
  106. Calculate Area and Perimeter of a Circle
  107. Calculate Area, Perimeter and Side of a Rhombus
  108. Calculate Surface Area and Volume of a Sphere
  109. Find the Area and Perimeter of an Equilateral Triangle
  110. Find the Area and Perimeter of an Isosceles Triangle
  111. Find Area and Perimeter of Scalene Triangle
  112. Find Area and Perimeter of a Parallelogram
  113. Find Area and Perimeter of a Trapezoid
  114. Find Area of a Circular Ring
  115. Find Length and Area of Arc in Circular Sector
  116. Pythagorean Theorem
  117. Find Surface Area and Volume of a Cube
  118. Find Surface Area and Volume of a Cylinder
  119. Find Surface Area and Volume of a Cone
  120. Find Surface Area and Volume of a Rectangular Prism
  121. Euclidean distance
  122. Manhattan distance
  123. Check if three points form a triangle
  124. Number System

  125. Convert Decimal to Binary
  126. Convert Binary to Decimal
  127. Conversion between Binary and Hexadecimal
  128. Searching & Sorting

  129. Linear search
  130. Binary search
  131. Games

  132. Rock paper scissors random approach
  133. Miscellaneous

  134. Multiply large numbers

Structure and Union

File Input/Output

  1. Display own source code

Searching & Sorting

  1. Linear search
  2. Binary search

Miscellaneous

  1. Multiply large numbers